[]
        
(Showing Draft Content)

C1.Win.Ribbon.RibbonTabCollection.IndexOf

IndexOf Method

IndexOf(string)

Gets the index of the RibbonTab with the given name.

Declaration
public int IndexOf(string name)
Public Function IndexOf(name As String) As Integer
Parameters
Type Name Description
string name

String containing the name of the tab to locate (case-sensitive).

Returns
Type Description
int

The index of the object in the collection, or -1 if the name was not found.

IndexOf(RibbonTab)

Determines the index of a specified RibbonTab in the RibbonTabCollection.

Declaration
public int IndexOf(RibbonTab tab)
Public Function IndexOf(tab As RibbonTab) As Integer
Parameters
Type Name Description
RibbonTab tab
Returns
Type Description
int