Xceed Grid for WinForms v4.3 Documentation
IndexOf(ExcelStyle) Method


Xceed.Grid.v4.3 Assembly > Xceed.Grid.Exporting Namespace > CustomStyleList Class > IndexOf Method : IndexOf(ExcelStyle) Method
The ExcelStyle to locate.
Searches for the specified ExcelStyle and returns the zero-based index of the first occurrence within the collection.
Syntax
'Declaration
 
Public Overloads Function IndexOf( _

   ByVal excelStyle As ExcelStyle _

) As Integer
'Usage
 
Dim instance As CustomStyleList

Dim excelStyle As ExcelStyle

Dim value As Integer

 

value = instance.IndexOf(excelStyle)
public int IndexOf( 

   ExcelStyle excelStyle

)

Parameters

excelStyle
The ExcelStyle to locate.

Return Value

The zero-based index of the first occurrence of excelStyle within the entire collection, if found; otherwise, returns -1.
Remarks

excelStyle's ID is not a matching criterion.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

CustomStyleList Class
CustomStyleList Members
Overload List