NumberBox.PlaceholderText 屬性

定義

取得或設定控制項中顯示的文字,直到使用者動作或其他作業變更值為止。

本檔適用于 Windows 應用程式 SDK 中適用于 WinUI 的 WinUI 2 for UWP (,請參閱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 或使用者清除輸入時,才會顯示預留位置文字。

適用於