ComboBox.Text 屬性

定義

取得或設定 ComboBox 中的文字。

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 = comboBox.text;
comboBox.text = string;
Public Property Text As String

屬性值

String

Platform::String

winrt::hstring

Windows 需求

裝置系列
Windows 10, version 1809 (已於 10.0.17763.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v7.0 引進)

適用於