Table of Contents

Class Style

Namespace
DocWright.Dom
Assembly
DocWright.Dom.dll

One style definition (ECMA-376 Part 1 §17.7.4.17 w:style), preserving the definition and its links — never flattened.

public sealed class Style : UnknownXmlHost
Inheritance
Style
Inherited Members

Constructors

Style(string, StyleType)

Initializes a style.

Properties

BasedOnId

Gets or sets the id of the style this one is based on (w:basedOn), or null.

CellFormat

Gets or sets the cell formatting the style specifies (w:tcPr), or null.

CharacterFormat

Gets or sets the run formatting the style specifies (w:rPr), or null.

ConditionalFormats

Gets the conditional-formatting blocks of a table style (w:tblStylePr), in document order. Empty for non-table styles.

IsCustom

Gets or sets whether the style is user-defined (w:customStyle attribute), or null.

IsDefault

Gets or sets whether this is the default style of its type (w:default attribute).

LinkedStyleId

Gets or sets the id of the linked paragraph/character counterpart (w:link), or null.

Name

Gets or sets the primary style name (w:name), or null.

NextStyleId

Gets or sets the id of the style applied to the following paragraph (w:next), or null.

ParagraphFormat

Gets or sets the paragraph formatting the style specifies (w:pPr), or null.

QuickFormat

Gets or sets whether the style is a primary "quick" style (w:qFormat), or null.

RowFormat

Gets or sets the row formatting the style specifies (w:trPr), or null.

SemiHidden

Gets or sets whether the style is hidden from the main UI (w:semiHidden), or null.

StyleId

Gets the unique style id.

TableFormat

Gets or sets the table formatting the style specifies (w:tblPr), or null.

Type

Gets the style kind.

UiPriority

Gets or sets the UI sorting priority (w:uiPriority), or null.

UnhideWhenUsed

Gets or sets whether the style unhides when used (w:unhideWhenUsed), or null.

Methods

Clone()

Creates a deep copy, including preserved unknown-XML islands.