Table of Contents

Method CanDeleteStyle

Namespace
DocWright.Dom.Editing
Assembly
DocWright.Dom.dll

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

document WordDocument

The document.

styleId string

The style's id.

Returns

bool

Whether the style can be deleted; false when no style has the id.

Exceptions

ArgumentNullException

document or styleId is null.