Xceed Grid for WinForms v4.3 Documentation
Xceed.Grid.v4.3 Assembly / Xceed.Editors Namespace / ColumnInfoList Class / IndexOf Method
The item to locate.


In This Topic
    IndexOf Method (ColumnInfoList)
    In This Topic
    Searches for the specified item in the list and returns the zero-based index of the first occurrence.
    Syntax
    'Declaration
     
    Public Function IndexOf( _
       ByVal columnInfo As ColumnInfo _
    ) As Integer
    'Usage
     
    Dim instance As ColumnInfoList
    Dim columnInfo As ColumnInfo
    Dim value As Integer
     
    value = instance.IndexOf(columnInfo)
    public int IndexOf( 
       ColumnInfo columnInfo
    )

    Parameters

    columnInfo
    The item to locate.

    Return Value

    The zero-based index of the first occurrence of columnInfo within the entire list, 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