[]
        
(Showing Draft Content)

C1.C1Word.Objects.RtfBookmarkCollection.IndexOf

IndexOf Method

IndexOf(RtfBookmark)

Returns the index within the collection of the element.

Declaration
public int IndexOf(RtfBookmark obj)
Public Function IndexOf(obj As RtfBookmark) As Integer
Parameters
Type Name Description
RtfBookmark obj

The bookmark for the Word/RTF document.

Returns
Type Description
int

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

IndexOf(string)

Returns the index within the collection of the element.

Declaration
public int IndexOf(string name)
Public Function IndexOf(name As String) As Integer
Parameters
Type Name Description
string name

The text name of the bookmark.

Returns
Type Description
int

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