Class TabPageAdvCollection
Contains a collection of TabPageAdv objects.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Tools
Assembly: Syncfusion.Tools.Windows.dll
Syntax
public class TabPageAdvCollection : ArrayList, IList, ICollection, IEnumerable, ICloneable
Constructors
TabPageAdvCollection(TabPanelData, Control, ITabPanelDefaultProperties)
Creates a new instance of the TabPageAdvCollection class.
Declaration
public TabPageAdvCollection(TabPanelData tabPanelData, Control parent, ITabPanelDefaultProperties tabPanelDefaultProperties)
Parameters
Type | Name | Description |
---|---|---|
TabPanelData | tabPanelData | A TabPanelData instance. |
System.Windows.Forms.Control | parent | The parent tab control. |
ITabPanelDefaultProperties | tabPanelDefaultProperties | An instance of the ITabPanelDefaultProperties interface. |
Properties
Count
Overridden. See System.Collections.ArrayList.Count.
Declaration
public override int Count { get; }
Property Value
Type |
---|
System.Int32 |
Overrides
Item[Int32]
Gets / sets a TabPageAdv with the specified index in the collection. In C#, this property is the indexer for the TabPageAdvCollection class.
Declaration
public TabPageAdv this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index of the tab page to get / set. |
Property Value
Type | Description |
---|---|
TabPageAdv | The TabPageAdv at the specified index. |
Methods
Add(TabPageAdv)
Adds a TabPageAdv to the collection.
Declaration
public void Add(TabPageAdv value)
Parameters
Type | Name | Description |
---|---|---|
TabPageAdv | value | The TabPageAdv to add. |
Add(Object)
Adds an object to the end of the TabPageAdvCollection. Overridden. See System.Collections.ArrayList.Add(System.Object).
Declaration
public override int Add(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The TabPageAdv to be added to the end of the TabPageAdvCollection. The value can be null. |
Returns
Type | Description |
---|---|
System.Int32 | The TabPageAdvCollection index at which the value has been added. |
Overrides
AddRange(ICollection)
Adds the elements of an System.Collections.ICollection to the end of the TabPageAdvCollection. Overridden. See System.Collections.ArrayList.AddRange(System.Collections.ICollection).
Declaration
public override void AddRange(ICollection c)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.ICollection | c |
Overrides
Clear()
Overridden. See System.Collections.ArrayList.Clear().
Declaration
public override void Clear()
Overrides
Contains(TabPageAdv)
Indicates whether a specified tab page is in the collection.
Declaration
public bool Contains(TabPageAdv page)
Parameters
Type | Name | Description |
---|---|---|
TabPageAdv | page | The TabPageAdv to locate in the collection. |
Returns
Type | Description |
---|---|
System.Boolean | True if the specified TabPageAdv is in the collection; false otherwise. |
GetEnumerator()
Overridden. See System.Collections.ArrayList.GetEnumerator().
Declaration
public override IEnumerator GetEnumerator()
Returns
Type |
---|
System.Collections.IEnumerator |
Overrides
GetEnumerator(Int32, Int32)
Returns an enumerator for a range of elements in the System.Collections.ArrayList.
Declaration
public override IEnumerator GetEnumerator(int index, int count)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based starting index of the TabPageAdvCollection section that the enumerator should refer to. |
System.Int32 | count | The number of TabPageAdv in the TabPageAdvCollection section that the enumerator should refer to. |
Returns
Type | Description |
---|---|
System.Collections.IEnumerator | An System.Collections.IEnumerator for the specified range of elements in the TabPageAdvCollection. |
Overrides
GetTabPageAdvOfTabData(TabPageAdvCollection, ITabData)
Returns the TabPageAdv instance of the specified ITabData.
Declaration
public static TabPageAdv GetTabPageAdvOfTabData(TabPageAdvCollection collection, ITabData tabData)
Parameters
Type | Name | Description |
---|---|---|
TabPageAdvCollection | collection | The collection to search. |
ITabData | tabData | The ITabData instance. |
Returns
Type | Description |
---|---|
TabPageAdv | A TabPageAdv instance. Can be null. |
IndexOf(TabPageAdv)
Returns the index of the specified tab page in the collection.
Declaration
public int IndexOf(TabPageAdv page)
Parameters
Type | Name | Description |
---|---|---|
TabPageAdv | page | The TabPageAdv to locate in the collection. |
Returns
Type | Description |
---|---|
System.Int32 | The zero-based index of the tab page; -1 if it cannot be found. |
Insert(Int32, Object)
Overridden. See System.Collections.ArrayList.Insert(System.Int32, System.Object).
Declaration
public override void Insert(int index, object value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | |
System.Object | value |
Overrides
InsertRange(Int32, ICollection)
InsertRange is disabled for this collection. Overridden. See System.Collections.ArrayList.InsertRange(System.Int32, System.Collections.ICollection).
Declaration
public override void InsertRange(int index, ICollection c)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | |
System.Collections.ICollection | c |
Overrides
MoveTabPage(Int32, Int32)
Moves tab pages around without removing and re-inserting them.
Declaration
public void MoveTabPage(int oldTabPos, int newTabPos)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | oldTabPos | The old position. |
System.Int32 | newTabPos | The new position. |
Remove(TabPageAdv)
Removes a TabPageAdv from the collection.
Declaration
public void Remove(TabPageAdv value)
Parameters
Type | Name | Description |
---|---|---|
TabPageAdv | value | The TabPageAdv to remove. |
Remove(Object)
Removes the first occurrence of a specific TabPageAdv from the TabPageAdvCollection. This method ensures that the obj argument is of type TabPageAdv.
Declaration
public override void Remove(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The System.Object to remove from the TabPageAdvCollection. The value can be null. |
Overrides
RemoveAt(Int32)
Removes the TabPageAdv at the specified index of the TabPageAdvCollection. Overridden. See System.Collections.ArrayList.RemoveAt(System.Int32).
Declaration
public override void RemoveAt(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index of the TabPageAdv to remove. |
Overrides
RemoveRange(Int32, Int32)
Removes a range of elements from the TabPageAdvCollection.
Declaration
public override void RemoveRange(int index, int count)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based starting index of the range of elements to remove. |
System.Int32 | count | The number of elements to remove. |
Overrides
Reverse(Int32, Int32)
Reverse is disabled for this collection. Overridden. See System.Collections.ArrayList.Reverse().
Declaration
public override void Reverse(int index, int count)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | |
System.Int32 | count |
Overrides
SetRange(Int32, ICollection)
SetRange is disabled for this collection. Overridden. See System.Collections.ArrayList.SetRange(System.Int32, System.Collections.ICollection).
Declaration
public override void SetRange(int index, ICollection c)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | |
System.Collections.ICollection | c |
Overrides
Sort(Int32, Int32, IComparer)
Sort is disabled for this collection. Overridden. See System.Collections.ArrayList.Sort().
Declaration
public override void Sort(int index, int count, IComparer comparer)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | |
System.Int32 | count | |
System.Collections.IComparer | comparer |