Share via


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

要显示在 控件中的占位符文本。 默认值为空字符串。

适用于