Share via


NumberBox.PlaceholderText プロパティ

定義

ユーザー アクションまたはその他の操作によって値が変更されるまでコントロールに表示されるテキストを取得または設定します。

このドキュメントは、UWP 用 WinUI 2 に適用されます (Windows アプリ SDKWinUI については、Windows アプリ SDK名前空間を参照してください)。

public:
 property Platform::String ^ PlaceholderText { Platform::String ^ get(); void set(Platform::String ^ value); };
winrt::hstring PlaceholderText();

void PlaceholderText(winrt::hstring value);
public string PlaceholderText { get; set; }
Public Property PlaceholderText As String

プロパティ値

String

Platform::String

winrt::hstring

注釈

プレースホルダー テキストは、 Value が NaN に設定されている場合、またはユーザーが入力をクリアした場合にのみ表示されます。

適用対象