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
Caps
Whether the text is shown in capitals, whatever case it's typed in.
public bool Caps { get; init; }
Property Value
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
ComplexBold
Whether complex-script text is bold.
public bool ComplexBold { get; init; }
Property Value
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
ComplexItalic
Whether complex-script text is italic.
public bool ComplexItalic { get; init; }
Property Value
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
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
ComplexSize
The font size of complex-script text.
public double? ComplexSize { get; init; }
Property Value
DoubleStrike
Whether the text is struck through with two lines.
public bool DoubleStrike { get; init; }
Property Value
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
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
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
Hidden
Whether the text is hidden; Word doesn't show or print hidden text unless asked to.
public bool Hidden { get; init; }
Property Value
Highlight
A highlight color name, such as "yellow"; DocxHighlights lists them.
public string? Highlight { get; init; }
Property Value
Italic
Whether the text is italic.
public bool Italic { get; init; }
Property Value
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
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
RightToLeft
Whether the text is set right to left, as in Arabic or Hebrew.
public bool RightToLeft { get; init; }
Property Value
Size
The font size, such as 11.
public double? Size { get; init; }
Property Value
SmallCaps
Whether the text is shown in small capitals, whatever case it's typed in.
public bool SmallCaps { get; init; }
Property Value
Strike
Whether the text is struck through with one line.
public bool Strike { get; init; }
Property Value
Style
The character style applied, if any.
public string? Style { get; init; }
Property Value
Underline
The underline kind, such as "single" or "double"; DocxUnderlines lists them.
public string? Underline { get; init; }
Property Value
VerticalAlign
"superscript" or "subscript", as in DocxRunVerticalAligns.
public string? VerticalAlign { get; init; }