[]
        
(Showing Draft Content)

C1.Word.Objects.RtfBookmarkCollection.IndexOf

IndexOf Method

IndexOf(RtfBookmark)

Returns the index within the collection of the element.

Declaration
public int IndexOf(RtfBookmark obj)
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)
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.