[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.BookmarkCollection.TryGetValue

TryGetValue Method

TryGetValue(string, out Bookmark)

Gets a bookmark from the collection by its name.

Declaration
public bool TryGetValue(string name, out Bookmark bookmark)
Public Function TryGetValue(name As String, ByRef bookmark As Bookmark) As Boolean
Parameters
Type Name Description
string name

The bookmark name.

Bookmark bookmark

When this method returns, contains the bookmark with the specified name, if the key is found, otherwise null.

Returns
Type Description
bool

true if the bookmark with the specified name is found, otherwise false.