<
OLAP for WPF and Silverlight | ComponentOne
C1.Olap Namespace / C1OlapFieldList Class / IndexOf Method / IndexOf(String) Method
Name of the field to look for.

In This Topic
    IndexOf(String) Method
    In This Topic
    Gets the position of a given C1OlapField in the list.
    Syntax
    'Declaration
     
    Public Overloads Function IndexOf( _
       ByVal fieldName As String _
    ) As Integer
    public int IndexOf( 
       string fieldName
    )

    Parameters

    fieldName
    Name of the field to look for.

    Return Value

    The index of the field in the list, or -1 if the field is not a member of the list.
    See Also