[]
Returns the index within the collection of the element.
public int IndexOf(RtfBookmark obj)
Public Function IndexOf(obj As RtfBookmark) As Integer
| Type | Name | Description |
|---|---|---|
| RtfBookmark | obj | The bookmark for the Word/RTF document. |
| Type | Description |
|---|---|
| int | The zero-based index of the first occurrence of element, if found, otherwise, -1. |
Returns the index within the collection of the element.
public int IndexOf(string name)
Public Function IndexOf(name As String) As Integer
| Type | Name | Description |
|---|---|---|
| string | name | The text name of the bookmark. |
| Type | Description |
|---|---|
| int | The zero-based index of the first occurrence of element, if found, otherwise, -1. |