PrintDocument for WinForms | ComponentOne
C1.Win.PrintPreview.4.8 Assembly / C1.Win.C1Preview Namespace / ViewHistoryItemCollection Class / IndexOf Method
The Object to locate in the collection. The value can be a null reference.

In This Topic
    IndexOf Method (ViewHistoryItemCollection)
    In This Topic
    Searches for the specified Object and returns the zero-based index of the first occurrence within the entire collection.
    Syntax
    'Declaration
     
    Public Function IndexOf( _
       ByVal obj As Object _
    ) As Integer
    public int IndexOf( 
       object obj
    )

    Parameters

    obj
    The Object to locate in the collection. The value can be a null reference.

    Return Value

    The zero-based index of the first occurrence of value within the entire collection, if found; otherwise, -1.
    See Also