Share via


AutoSuggestBox.Text 属性

定义

获取或设置 控件中显示的文本。

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

void Text(winrt::hstring value);
public string Text { get; set; }
var string = autoSuggestBox.text;
autoSuggestBox.text = string;
Public Property Text As String

属性值

String

Platform::String

winrt::hstring

控件中显示的文本。

注解

此属性通常不是在 XAML 中设置的。

适用于