ComboBox.Text Property

Definition

Gets or sets the text in the 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

Property Value

String

Platform::String

winrt::hstring

Windows requirements

Device family
Windows 10, version 1809 (introduced in 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v7.0)

Applies to