TabStripPageCollection Class
Encapsulates a collection of TabStripPage components.
[TypeConverter(typeof(TabStripPageCollectionConverter))]
public class TabStripPageCollection
- Inheritance:
- object object
Remarks
This class is a zero-based indexed collection.
Constructors
TabStripPageCollection(ControlCollection)
Initializes an instance of the class.
public TabStripPageCollection(Control.ControlCollection tabStripControls)
| Parameter | Type | Description |
|---|---|---|
| tabStripControls | Control.ControlCollection | The control collection to link to. |
See Also
Properties
Count
Gets the number of elements contained in the ICollection<T>.
public int Count { get; }
Property Value
- int:
The number of elements contained in the ICollection<T>.
See Also
this[int]
The TabStripPage at the specified index.
public TabStripPage this[int index] { get; }
| Parameter | Type | Description |
|---|---|---|
| index | int | The index of the TabStripPage to return. |
Property Value
See Also
this[string]
The TabStripPage with the specified key.
public TabStripPage? this[string key] { get; }
| Parameter | Type | Description |
|---|---|---|
| key | string | The key of the TabStripPage to return. |
Property Value
See Also
Methods
Add(TabStripPage)
Adds an item to the ICollection<T>.
public void Add(TabStripPage item)
| Parameter | Type | Description |
|---|---|---|
| item | TabStripPage | The object to add to the ICollection<T>. |
Exceptions
| Type | Condition |
|---|---|
| NotSupportedException | The ICollection<T> is read-only. |
See Also
AddRange(IEnumerable<TabStripPage>)
Adds the specified collection of TabStripPage controls to the collection.
public void AddRange(IEnumerable<TabStripPage> pages)
| Parameter | Type | Description |
|---|---|---|
| pages | IEnumerable<TabStripPage> | The enumerable of TabStripPage controls to add. |
See Also
Clear()
Removes all items from the ICollection<T>.
public void Clear()
Exceptions
| Type | Condition |
|---|---|
| NotSupportedException | The ICollection<T> is read-only. |
See Also
Contains(TabStripPage)
Determines whether the ICollection<T> contains a specific value.
public bool Contains(TabStripPage item)
| Parameter | Type | Description |
|---|---|---|
| item | TabStripPage | The object to locate in the ICollection<T>. |
Returns
- bool:
trueifitemis found in the ICollection<T>; otherwise,false.
See Also
Contains(string)
Determines whether the a TabStripPage with the specified key is in the collection.
public virtual bool Contains(string key)
| Parameter | Type | Description |
|---|---|---|
| key | string | The key of the TabStripPage to look for. |
Returns
- bool:
trueif the collection contains a TabStripPage with the specified key; otherwise,false.
See Also
CopyTo(TabStripPage[], int)
Copies the elements of the ICollection<T> to an Array, starting at a particular Array index.
public void CopyTo(TabStripPage[] array, int arrayIndex)
| Parameter | Type | Description |
|---|---|---|
| array | TabStripPage[] | The one-dimensional Array that is the destination of the elements copied from ICollection<T>. The Array must have zero-based indexing. |
| arrayIndex | int | The zero-based index in |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException |
|
| ArgumentOutOfRangeException |
|
| ArgumentException | The number of elements in the source ICollection<T> is greater than the available space from |
See Also
IndexOf(TabStripPage)
Determines the index of a specific item in the IList<T>.
public int IndexOf(TabStripPage item)
| Parameter | Type | Description |
|---|---|---|
| item | TabStripPage | The object to locate in the IList<T>. |
Returns
- int:
The index of
itemif found in the list; otherwise, -1.
See Also
IndexOf(string)
Returns the index of the TabStripPage with the specified key in the collection.
public int IndexOf(string key)
| Parameter | Type | Description |
|---|---|---|
| key | string | The key of the TabStripPage to look for. |
Returns
- int:
If found, the index where the TabStripPage is in the collection; otherwise,
-1.
See Also
Insert(int, TabStripPage)
Inserts an item to the IList<T> at the specified index.
public void Insert(int index, TabStripPage item)
| Parameter | Type | Description |
|---|---|---|
| index | int | The zero-based index at which |
| item | TabStripPage | The object to insert into the IList<T>. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentOutOfRangeException |
|
| NotSupportedException | The IList<T> is read-only. |
See Also
MoveTo(TabStripPage, int)
Moves a TabStripPage to the specified index.
public void MoveTo(TabStripPage page, int newIndex)
| Parameter | Type | Description |
|---|---|---|
| page | TabStripPage | The TabStripPage to move. |
| newIndex | int | The new index. |
See Also
Remove(TabStripPage)
Removes the first occurrence of a specific object from the ICollection<T>.
public bool Remove(TabStripPage item)
| Parameter | Type | Description |
|---|---|---|
| item | TabStripPage | The object to remove from the ICollection<T>. |
Returns
- bool:
trueifitemwas successfully removed from the ICollection<T>; otherwise,false. This method also returnsfalseifitemis not found in the original ICollection<T>.
Exceptions
| Type | Condition |
|---|---|
| NotSupportedException | The ICollection<T> is read-only. |
See Also
RemoveAt(int)
Removes the TabStripPage at the specified index from the collection.
public void RemoveAt(int index)
| Parameter | Type | Description |
|---|---|---|
| index | int | The index of the TabStripPage to remove. |
See Also
Inherited Members
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()
Extension Methods
- ObjectExtensions.TryConvertToDouble(object, out double)
- ObjectExtensions.TryConvertToDouble(object, IFormatProvider, out double)