Class ListBox
The ListBox component provides a list of options, which includes tag name, ID, and model options for the users to select.
Implements
System.Web.IHtmlString
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Syncfusion.JavaScript
Assembly: Syncfusion.EJ.dll
Syntax
public class ListBox : Control, IHtmlString
Constructors
ListBox()
Initializes a new instance of the ListBox class.
Declaration
public ListBox()
ListBox(String, ListBoxProperties)
Initializes a new instance of the ListBox class by the specified id and the ListBox properties.
Declaration
public ListBox(string id, ListBoxProperties propModel)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | |
ListBoxProperties | propModel |
Properties
ListBoxModel
Gets or sets the ListBox properties to the model.
Declaration
public ListBoxProperties ListBoxModel { get; set; }
Property Value
Type | Description |
---|---|
ListBoxProperties |
Model
Instance of control properties class
Declaration
protected override object Model { get; }
Property Value
Type | Description |
---|---|
System.Object |
Overrides
PluginName
Gets the plugin name of the ListBox element as 'ejListBox'.
Declaration
public override string PluginName { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
TagName
Gets the tag name of the ListBox element as 'ul'.
Declaration
public override string TagName { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Methods
CreateContainer(String)
Represents an HTML-encoded string of the Autocomplete control that should not be encoded again.
Declaration
public override HtmlString CreateContainer(string controlId)
Parameters
Type | Name | Description |
---|---|---|
System.String | controlId |
Returns
Type | Description |
---|---|
System.Web.HtmlString |
Overrides
RenderControl(String)
Represents an HTML element of the ListBox control.
Declaration
public override void RenderControl(string controlId)
Parameters
Type | Name | Description |
---|---|---|
System.String | controlId |
Overrides
Implements
System.Web.IHtmlString