Dela via


RibbonComboBox.Text Property

Gets or sets the text of the currently selected item.

Namespace:  Microsoft.Windows.Controls.Ribbon
Assembly:  RibbonControlsLibrary (in RibbonControlsLibrary.dll)

Syntax

'Declaration
Public Property Text As String
public string Text { get; set; }
public:
property String^ Text {
    String^ get ();
    void set (String^ value);
}
member Text : string with get, set
function get Text () : String
function set Text (value : String)

Property Value

Type: System.String
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.

Dependency Property Information

Identifier field

TextProperty

Metadata properties set to true

None

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.

.NET Framework Security

See Also

Reference

RibbonComboBox Class

Microsoft.Windows.Controls.Ribbon Namespace