Method IsValidBookmarkName
IsValidBookmarkName(string?)
Gets whether Word takes the name for a bookmark (Insert > Bookmark, WQ-0111): a letter first (or ,
a hidden bookmark), then letters, digits and , at most 40 characters; no space, hyphen or dot.
public static bool IsValidBookmarkName(string? name)
Parameters
namestringThe name.
Returns
- bool
Whether it is a valid bookmark name.