Xceed Grid for WinForms v4.3 Documentation
Xceed.Grid.v4.3 Assembly / Xceed.Grid.Exporting Namespace / CustomStyleList Class / IndexOf Method / IndexOf(String) Method
A string representing the ID to locate.


In This Topic
    IndexOf(String) Method
    In This Topic
    Searches for the specified ID and returns the zero-based index of the first occurrence within the collection.
    Syntax
    'Declaration
     
    Public Overloads Function IndexOf( _
       ByVal styleID As String _
    ) As Integer
    'Usage
     
    Dim instance As CustomStyleList
    Dim styleID As String
    Dim value As Integer
     
    value = instance.IndexOf(styleID)
    public int IndexOf( 
       string styleID
    )

    Parameters

    styleID
    A string representing the ID to locate.

    Return Value

    The zero-based index of the first ExcelStyle within the entire collection whose ID matches styleID, if found; otherwise, returns -1.
    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