AutoSuggestBox.PlaceholderText 屬性

定義

取得或設定要顯示在控件中的佔位元文字。

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; }
var string = autoSuggestBox.placeholderText;
autoSuggestBox.placeholderText = string;
Public Property PlaceholderText As String
<AutoSuggestBox PlaceholderText="string"/>

屬性值

String

Platform::String

winrt::hstring

要顯示在控件中的佔位元文字。 預設為空字串。

適用於