This documentation is archived and is not being maintained.
ListItem Members
Visual Studio 2008
Represents a data item in a data-bound list control. This class cannot be inherited.
The ListItem type exposes the following members.
| Name | Description | |
|---|---|---|
|
Equals | Determines whether the specified object has the same value and text as the current list item. (Overrides Object::Equals(Object).) |
|
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
|
FromString | Creates a ListItem from the specified text. |
|
GetHashCode | Serves as a hash function for a particular type, and is suitable for use in hashing algorithms and data structures like a hash table. (Overrides Object::GetHashCode().) |
|
GetType | Gets the type of the current instance. (Inherited from Object.) |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
ToString | Returns a string that represents the current object. (Overrides Object::ToString().) |
| Name | Description | |
|---|---|---|
|
Attributes | Gets a collection of attribute name and value pairs for the ListItem that are not directly supported by the class. |
|
Enabled | Gets or sets a value indicating whether the list item is enabled. |
|
Selected | Gets or sets a value indicating whether the item is selected. |
|
Text | Gets or sets the text displayed in a list control for the item represented by the ListItem. |
|
Value | Gets or sets the value associated with the ListItem. |
| Name | Description | |
|---|---|---|
|
IParserAccessor::AddParsedSubObject | Infrastructure. Allows the Text property to be persisted as inner content. |
|
IAttributeAccessor::GetAttribute | Infrastructure. Returns the attribute value of the list item control having the specified attribute name. |
|
IStateManager::IsTrackingViewState | Infrastructure. For a description of this member, see IStateManager::IsTrackingViewState. |
|
IStateManager::LoadViewState | Infrastructure. For a description of this member, see IStateManager::LoadViewState. |
|
IStateManager::SaveViewState | Infrastructure. For a description of this member, see IStateManager::SaveViewState. |
|
IAttributeAccessor::SetAttribute | Infrastructure. Sets an attribute of the list item control with the specified name and value. |
|
IStateManager::TrackViewState | Infrastructure. For a description of this member, see IStateManager::TrackViewState. |
Show: