Table of Contents

Class DocxRunFormat

Namespace
PDiffy
Assembly
PDiffy.dll

How text looks. Sizes are in points; null means not set.

public sealed record DocxRunFormat : IEquatable<DocxRunFormat>
Inheritance
DocxRunFormat
Implements
Inherited Members

Properties

Bold

Whether the text is bold.

public bool Bold { get; init; }

Property Value

bool

Caps

Whether the text is shown in capitals, whatever case it's typed in.

public bool Caps { get; init; }

Property Value

bool

Color

A hex color such as "FF0000", worked out through the theme when it's a theme color; null means automatic or not set.

public string? Color { get; init; }

Property Value

string

ComplexBold

Whether complex-script text is bold.

public bool ComplexBold { get; init; }

Property Value

bool

ComplexFont

The font for complex-script text, such as Arabic or Hebrew. A theme font the theme leaves empty is given as its theme name, such as "minorBidi".

public string? ComplexFont { get; init; }

Property Value

string

ComplexItalic

Whether complex-script text is italic.

public bool ComplexItalic { get; init; }

Property Value

bool

ComplexLanguage

The language of the text's complex-script characters, such as "ar-SA". It's resolved the same way as Language.

public string? ComplexLanguage { get; init; }

Property Value

string

ComplexScript

Whether all the text takes the complex-script font, size, bold and italic, whatever characters it has (w:cs).

public bool ComplexScript { get; init; }

Property Value

bool

ComplexSize

The font size of complex-script text.

public double? ComplexSize { get; init; }

Property Value

double?

DoubleStrike

Whether the text is struck through with two lines.

public bool DoubleStrike { get; init; }

Property Value

bool

EastAsianFont

The font for East Asian text. A theme font the theme leaves empty is given as its theme name, such as "minorEastAsia".

public string? EastAsianFont { get; init; }

Property Value

string

EastAsianLanguage

The language of the text's East Asian characters, such as "ja-JP". It's resolved the same way as Language.

public string? EastAsianLanguage { get; init; }

Property Value

string

Font

The font for Latin text, such as "Calibri"; a theme font is given as the font the theme names.

public string? Font { get; init; }

Property Value

string

Hidden

Whether the text is hidden; Word doesn't show or print hidden text unless asked to.

public bool Hidden { get; init; }

Property Value

bool

Highlight

A highlight color name, such as "yellow"; DocxHighlights lists them.

public string? Highlight { get; init; }

Property Value

string

Italic

Whether the text is italic.

public bool Italic { get; init; }

Property Value

bool

Language

The text's language, such as "fr-FR". A run's comes from the run, its styles or the document's defaults; a character style's only from the style.

public string? Language { get; init; }

Property Value

string

Other

A hash of the run's own direct formatting PDiffy doesn't read, such as character spacing (w:spacing) or w:shd, so changing it changes the snapshot; null when it has none. Only the run's own formatting counts, not its styles', and noise Word writes everywhere is left out.

public string? Other { get; init; }

Property Value

string

RightToLeft

Whether the text is set right to left, as in Arabic or Hebrew.

public bool RightToLeft { get; init; }

Property Value

bool

Size

The font size, such as 11.

public double? Size { get; init; }

Property Value

double?

SmallCaps

Whether the text is shown in small capitals, whatever case it's typed in.

public bool SmallCaps { get; init; }

Property Value

bool

Strike

Whether the text is struck through with one line.

public bool Strike { get; init; }

Property Value

bool

Style

The character style applied, if any.

public string? Style { get; init; }

Property Value

string

Underline

The underline kind, such as "single" or "double"; DocxUnderlines lists them.

public string? Underline { get; init; }

Property Value

string

VerticalAlign

"superscript" or "subscript", as in DocxRunVerticalAligns.

public string? VerticalAlign { get; init; }

Property Value

string