ValueList Class Members
The following tables list the members exposed by ValueList.
Public Properties
Name | Description | |
---|---|---|
Count | Gets the number of elements contained in the collection. | |
DisplayStyle | Set the DisplayStyle for the ValueList. ValueListDisplayStyle enumeration specifies what properties of ValueListItems will be displayed. | |
IsSynchronized | Gets a value indicating whether access to the collection is synchronized (thread-safe). | |
Item | Overloaded. Indexer to get the ValuListItem at the given position index from the ValueList. | |
SortStyle | Set the SortStyle for the ValueList. ValueListSortStyle enumeration specifies how the ValueListItems will be sorted for display. | |
SyncRoot | Gets an object that can be used to synchronize access to the collection. |
Public Methods
Name | Description | |
---|---|---|
Add | Overloaded. Create and add a new ValueListItem object to the ValueList. Note that the ValueListItem created will contain the given DisplayText and a default DataValue with value (object)DisplayText. | |
Clear | Remove all ValueListItems from the ValueList. | |
CopyTo | Copies the elements of the collection to an Array, starting at a particular Array index. | |
GetEnumerator | Returns an enumerator that can iterate through the Collection. | |
Insert | Overloaded. Create and insert a new ValueListItem object into the ValueList. Note that the ValueListItem created will contain the given DisplayText and a default DataValue with value (object)DisplayText. | |
Remove | Overloaded. Remove the ValueListItem with the specified DisplayText from the ValueList. |
See Also