Class SelectItemCollection
Summary description for SelectItemColection.
Inheritance
Implements
Namespace: EPiServer.XForms.WebControls
Assembly: EPiServer.XForms.dll
Version: 8.11.0Syntax
public class SelectItemCollection : WebControl, IEnumerable<SelectItem>, IEnumerable, INamingContainer
Constructors
SelectItemCollection()
Declaration
public SelectItemCollection()
Properties
Item[Int32]
Gets or sets the SelectItem associated with the specified index.
Declaration
public SelectItem this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Property Value
Type | Description |
---|---|
SelectItem |
Items
Declaration
public List<SelectItem> Items { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<SelectItem> |
Methods
Add(SelectItem)
Adds a SelectItem to the end of the collection.
Declaration
public void Add(SelectItem SelectItem)
Parameters
Type | Name | Description |
---|---|---|
SelectItem | SelectItem | The SelectItem to be added to the end of the collection. |
AddParsedSubObject(Object)
Declaration
protected override void AddParsedSubObject(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Contains(SelectItem)
Determines whether the collection contains a specific element.
Declaration
public bool Contains(SelectItem SelectItem)
Parameters
Type | Name | Description |
---|---|---|
SelectItem | SelectItem | The SelectItem to locate in the CollectionBase. |
Returns
Type | Description |
---|---|
System.Boolean | true if the collection contains the specified value; otherwise, false. |
CopyTo(SelectItem[], Int32)
Copies the entire collection to a one-dimensional array, starting at the specified index of the target array.
Declaration
public void CopyTo(SelectItem[] selectItems, int index)
Parameters
Type | Name | Description |
---|---|---|
SelectItem[] | selectItems | The one-dimensional array that is the destination of the elements copied from the collection. The array must have zero-based indexing. |
System.Int32 | index | The zero-based index in array at which copying begins. |
GetEnumerator()
Declaration
public IEnumerator<SelectItem> GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<SelectItem> |
IndexOf(SelectItem)
Searches for the specified SelectItem and returns the zero-based index of the first occurrence within the entire collection.
Declaration
public int IndexOf(SelectItem SelectItem)
Parameters
Type | Name | Description |
---|---|---|
SelectItem | SelectItem | The SelectItem to locate in the CollectionBase. |
Returns
Type | Description |
---|---|
System.Int32 | The zero-based index of the first occurrence of value within the entire collection, if found; otherwise, -1. |
Insert(Int32, SelectItem)
Inserts an element into the collection at the specified index.
Declaration
public void Insert(int index, SelectItem SelectItem)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index at which value should be inserted. |
SelectItem | SelectItem | The SelectItem to insert. |
Remove(SelectItem)
Removes the first occurrence of a specific SelectItem from the collection.
Declaration
public void Remove(SelectItem SelectItem)
Parameters
Type | Name | Description |
---|---|---|
SelectItem | SelectItem | The SelectItem to remove from the collection. |
Explicit Interface Implementations
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.IEnumerator |