Click or drag to resize

BookmarkGetNames Method

Gives all bookmark names on document

Namespace:  SOWIDocument.Word
Assembly:  SOWIDocument.Word (in SOWIDocument.Word.dll) Version: 22.2.10.1 (22.2.10.450)
Syntax
public string[] GetNames()

Return Value

Type: String
List of bookmark names
Examples
lResult = lDOC.Bookmark.GetNames();
if (lDOC != null)
{
    System.Diagnostics.Debug.WriteLine($"    Bookmarks (count: {lResult.Length.ToString()})");
    foreach (string lItem in lResult)
    {
        //* debug information *
        System.Diagnostics.Debug.WriteLine($"      Name: {lItem}");
    }
}
See Also