ComponentOne Reports for WPF
C1.C1Report.CustomFields.Maps Namespace / Util Class / GetIndex Method
The object to convert.
OUT: the integer index if value could be converted to an integer, -1 otherwise.

In This Topic
    GetIndex Method
    In This Topic
    Converts an object to an integer or a string that can be used as an index in a collection.
    Syntax
    'Declaration
     
    Public Shared Function GetIndex( _
       ByVal value As Object, _
       ByRef integer As Integer _
    ) As String
    public static string GetIndex( 
       object value,
       out int integer
    )

    Parameters

    value
    The object to convert.
    integer
    OUT: the integer index if value could be converted to an integer, -1 otherwise.

    Return Value

    The string index (use only if integer is -1).
    See Also