PrintDocument for WinForms | ComponentOne
C1.PrintDocument.8 Assembly / C1.C1Preview.DataBinding Namespace / AggregateCollection Class / IndexOfName Method
The name of the item to locate.

In This Topic
    IndexOfName Method (AggregateCollection)
    In This Topic
    Returns the 0-based index of a C1.C1Preview.NamedCollectionItem with specified name in the current C1.C1Preview.NamedCollection.
    Syntax
    'Declaration
     
    Public Function IndexOfName( _
       ByVal name As String _
    ) As Integer
    public int IndexOfName( 
       string name
    )

    Parameters

    name
    The name of the item to locate.

    Return Value

    The 0-based index of the specified item, or -1 if the item was not found.
    See Also