Class TabBarPageCollection
A collection of TabBarPage objects.
Implements
Namespace: Syncfusion.Windows.Forms
Assembly: Syncfusion.Shared.Base.dll
Syntax
public class TabBarPageCollection : Object, IList, ICollection, IEnumerable
Remarks
You can access this collection with the TabBarPages of a TabBarSplitterControl.
Constructors
TabBarPageCollection(TabBarSplitterControl)
Initializes a new TabBarPageCollection and associates it with a TabBarSplitterControl.
Declaration
public TabBarPageCollection(TabBarSplitterControl owner)
Parameters
| Type | Name | Description |
|---|---|---|
| TabBarSplitterControl | owner | The TabBarSplitterControl that manages this collection. |
Properties
Count
Returns the number of pages.
Declaration
public virtual int Count { get; }
Property Value
| Type |
|---|
| System.Int32 |
IsReadOnly
Returns False.
Declaration
public virtual bool IsReadOnly { get; }
Property Value
| Type |
|---|
| System.Boolean |
Item[Int32]
Gets / sets the TabBarPage at the specified index.
Declaration
public virtual TabBarPage this[int index] { get; set; }
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index |
Property Value
| Type |
|---|
| TabBarPage |
Methods
Add(TabBarPage)
Adds a TabBarPage to the collection.
Declaration
public virtual void Add(TabBarPage value)
Parameters
| Type | Name | Description |
|---|---|---|
| TabBarPage | value | The page to be added. |
AddRange(TabBarPage[])
Adds an array of TabBarPage to this collection.
Declaration
public void AddRange(TabBarPage[] value)
Parameters
| Type | Name | Description |
|---|---|---|
| TabBarPage[] | value | The pages to be added. |
Clear()
Clears all entries from the list.
Declaration
public virtual void Clear()
Contains(TabBarPage)
Indicates whether the specified TabBarPage belongs to this collection.
Declaration
public bool Contains(TabBarPage page)
Parameters
| Type | Name | Description |
|---|---|---|
| TabBarPage | page | The page to be tested. |
Returns
| Type | Description |
|---|---|
| System.Boolean | True if page belongs to collection; False otherwise. |
CopyTo(TabBarPage[], Int32)
Copies the collection objects to a one-dimensional System.Array instance beginning at the specified index.
Declaration
public void CopyTo(TabBarPage[] pages, int index)
Parameters
| Type | Name | Description |
|---|---|---|
| TabBarPage[] | pages | The one-dimensional System.Array that is the destination of the values copied from the collection. |
| System.Int32 | index | The index of the array at which to begin inserting. |
GetEnumerator()
Returns an enumerator that lets you enumerate through the list of TabBarPage items.
Declaration
public virtual IEnumerator GetEnumerator()
Returns
| Type | Description |
|---|---|
| System.Collections.IEnumerator | An enumerator. |
IndexOf(TabBarPage)
Returns the index of the specified page to be queried.
Declaration
public int IndexOf(TabBarPage page)
Parameters
| Type | Name | Description |
|---|---|---|
| TabBarPage | page | The page to look up. |
Returns
| Type | Description |
|---|---|
| System.Int32 | The zero-based index of the page; -1 if not found. |
Insert(Int32, TabBarPage)
Inserts a TabBarPage at the specified index.
Declaration
public void Insert(int index, TabBarPage value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | The index where the page should be inserted. |
| TabBarPage | value | The page to be inserted. |
Remove(TabBarPage)
Removes a page from the collection.
Declaration
public virtual void Remove(TabBarPage value)
Parameters
| Type | Name | Description |
|---|---|---|
| TabBarPage | value | The page to remove. |
RemoveAt(Int32)
Removes an item at the specified index.
Declaration
public virtual void RemoveAt(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | The item index. |