Gets or sets text for C1ComboBox.

Namespace:  C1.Web.UI.Controls.C1ComboBox
Assembly:  C1.Web.UI.Controls.3 (in C1.Web.UI.Controls.3.dll)

Syntax

C#
[BindableAttribute(false)]
[DefaultValueAttribute(null)]
[C1CategoryAttribute("Category.Appearance")]
[LayoutAttribute(LayoutType.Appearance)]
[JsonAttribute(true, true, null)]
public string Text { get; set; }
Visual Basic (Declaration)
<BindableAttribute(False)> _
<DefaultValueAttribute(Nothing)> _
<C1CategoryAttribute("Category.Appearance")> _
<LayoutAttribute(LayoutType.Appearance)> _
<JsonAttribute(True, True, Nothing)> _
Public Property Text As String
	Get
	Set

Implements

ITextControl..::..Text

Examples

Copy CodeC#
C1ComboBox comboBox = new C1ComboBox();
C1ComboBoxItem item = new C1ComboBoxItem("test1");
item.Selected = true;
comboBox.Items.Add(item);
// txt is "test1";string txt = comboBox.Text;

See Also