Table of Contents

Property Text

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Text

Gets or sets the text displayed in the ComboBox.

[Browsable(false)]
public override string Text { get; set; }

Property Value

string

Remarks

Setting the Text property to an empty string ("") sets the SelectedIndex to null. Setting the Text property to a value that is in the Items collection sets the SelectedIndex to the index of that item. Setting the Text property to a value that is not in the collection leaves the SelectedIndex unchanged. Reading the Text property returns the text of SelectedItem, if it is not null.

Exceptions

ArgumentNullException

The value is null.