Method IsWordStyleName
IsWordStyleName(string)
Gets whether Word treats a style of the name as one of its own built-in styles, compared ignoring case: the
376 names Word lists in a document's latent styles (heading 1, annotation text, Table
Grid), far more than this library defines. Word recognises a built-in style by its name, not by
w:customStyle, and does not delete one (WQ-0109).
public static bool IsWordStyleName(string name)
Parameters
namestringThe style's name.
Returns
- bool
Whether the name is one of Word's built-in style names.
Exceptions
- ArgumentNullException
nameis null.