ComponentOne Word for WPF
C1.WPF.Word.4.5.2 Assembly / C1.WPF.Word.Objects Namespace / RtfCollection Class / IndexOf Method
The object for the Word/RTF document.

In This Topic
    IndexOf Method (RtfCollection)
    In This Topic
    Returns the index within the collection of the element.
    Syntax
    'Declaration
     
    Public Function IndexOf( _
       ByVal obj As RtfObject _
    ) As Integer
    public int IndexOf( 
       RtfObject obj
    )

    Parameters

    obj
    The object for the Word/RTF document.

    Return Value

    The zero-based index of the first occurrence of element, if found, otherwise, -1.
    See Also