Method CanDeleteStyle
CanDeleteStyle(WordDocument, string)
Gets whether DeleteStyle(WordDocument, DocumentPosition, string) deletes the style: a paragraph, character or table style that is not a default style and whose name (its id when it has none) is not one of Word's built-in names (IsWordStyleName(string)). Word deletes no other (WQ-0109).
public static bool CanDeleteStyle(this WordDocument document, string styleId)
Parameters
documentWordDocumentThe document.
styleIdstringThe style's id.
Returns
- bool
Whether the style can be deleted; false when no style has the id.
Exceptions
- ArgumentNullException
documentorstyleIdis null.