RibbonComboBox.Text Property

Definition

Gets or sets the text of the currently selected item.

public:
 property System::String ^ Text { System::String ^ get(); void set(System::String ^ value); };
public string Text { get; set; }
member this.Text : string with get, set
Public Property Text As String

Property Value

The text of the item that is displayed in the selection box. The registered default is an Empty string. For more information about what can influence the value, see Dependency Property Value Precedence.

Remarks

When there is no SelectionBoxItem and IsEditable is true, this property represents the text entered in the text box. When IsEditable is false, this property represents the string version of the selected item.

Dependency Property Information

Identifier field TextProperty
Metadata properties set to true None

Applies to