System.Web.UI.WebControls.ListItem Members

The members of System.Web.UI.WebControls.ListItem are listed below.

See Also: Inherited members from System.Object

Public Constructors

Initializes a new instance of the System.Web.UI.WebControls.ListItem class.

Initializes a new instance of the System.Web.UI.WebControls.ListItem class with the specified text data.

Initializes a new instance of the System.Web.UI.WebControls.ListItem class with the specified text and value data.

Initializes a new instance of the System.Web.UI.WebControls.ListItem class with the specified text, value, and enabled data.

Public Properties

[read-only]
AttributesSystem.Web.UI.AttributeCollection.

Gets a collection of attribute name and value pairs for the System.Web.UI.WebControls.ListItem that are not directly supported by the class.

Enabledbool.

Gets or sets a value indicating whether the list item is enabled.

Selectedbool.

Gets or sets a value indicating whether the item is selected.

Textstring.

Gets or sets the text displayed in a list control for the item represented by the System.Web.UI.WebControls.ListItem.

Valuestring.

Gets or sets the value associated with the System.Web.UI.WebControls.ListItem.

Public Methods

override
Equals(object) : bool

Determines whether the specified object has the same value and text as the current list item.

static
FromString(string) : ListItem

Creates a System.Web.UI.WebControls.ListItem from the specified text.

override
GetHashCode() : int

Serves as a hash function for a particular type, and is suitable for use in hashing algorithms and data structures like a hash table.

override
ToString() : string
Documentation for this section has not yet been entered.

Explicitly Implemented Interface Members

System.Web.UI.IParserAccessor.AddParsedSubObject

Allows the ListItem.Text property to be persisted as inner content.

System.Web.UI.IAttributeAccessor.GetAttribute

Returns the attribute value of the list item control having the specified attribute name.

[read-only]
System.Web.UI.IStateManager.IsTrackingViewStatebool.

For a description of this member, see System.Web.UI.IStateManager.IsTrackingViewState.

System.Web.UI.IStateManager.LoadViewState

For a description of this member, see System.Web.UI.IStateManager.LoadViewState(object).

System.Web.UI.IStateManager.SaveViewState

For a description of this member, see System.Web.UI.IStateManager.SaveViewState.

System.Web.UI.IAttributeAccessor.SetAttribute

Sets an attribute of the list item control with the specified name and value.

System.Web.UI.IStateManager.TrackViewState

For a description of this member, see System.Web.UI.IStateManager.TrackViewState.