Table of Contents

Class RichCharacterStyle

Namespace
RichEdit.Core
Assembly
RichEdit.Core.dll

Typed cascading character properties. Unspecified properties inherit preceding formatting.

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

Properties

AllCaps

Whether uppercase presentation is requested.

public StyleValue<bool> AllCaps { get; init; }

Property Value

StyleValue<bool>

Background

The highlight color, or null for no highlight.

public StyleValue<RichColor?> Background { get; init; }

Property Value

StyleValue<RichColor?>

Bold

Whether bold type is authored.

public StyleValue<bool> Bold { get; init; }

Property Value

StyleValue<bool>

CharacterSpacing

Additional character spacing in typographic points.

public StyleValue<RichLength> CharacterSpacing { get; init; }

Property Value

StyleValue<RichLength>

Direction

The authored inline writing direction.

public StyleValue<RichDirection> Direction { get; init; }

Property Value

StyleValue<RichDirection>

FontFamily

The authored font family, or null for an unresolved view fallback.

public StyleValue<string?> FontFamily { get; init; }

Property Value

StyleValue<string>

FontSize

The authored font size, or null for an unresolved view fallback.

public StyleValue<RichFontSize?> FontSize { get; init; }

Property Value

StyleValue<RichFontSize?>

Foreground

The foreground color, or null for an unresolved view fallback.

public StyleValue<RichColor?> Foreground { get; init; }

Property Value

StyleValue<RichColor?>

Hidden

Whether text is hidden from ordinary presentation.

public StyleValue<bool> Hidden { get; init; }

Property Value

StyleValue<bool>

HorizontalScalePercent

Horizontal glyph scaling as a positive integer percentage; 100 is natural width.

public StyleValue<int> HorizontalScalePercent { get; init; }

Property Value

StyleValue<int>

Italic

Whether italic type is authored.

public StyleValue<bool> Italic { get; init; }

Property Value

StyleValue<bool>

Language

The language tag, or null for an unspecified language.

public StyleValue<string?> Language { get; init; }

Property Value

StyleValue<string>

Outline

Whether outlined glyphs are requested.

public StyleValue<bool> Outline { get; init; }

Property Value

StyleValue<bool>

Script

Superscript or subscript presentation.

public StyleValue<RichScript> Script { get; init; }

Property Value

StyleValue<RichScript>

Shading

Character shading, independently of highlighting; null disables shading.

public StyleValue<RichShading?> Shading { get; init; }

Property Value

StyleValue<RichShading?>

Shadow

Whether shadowed glyphs are requested.

public StyleValue<bool> Shadow { get; init; }

Property Value

StyleValue<bool>

SmallCaps

Whether small capitals are requested.

public StyleValue<bool> SmallCaps { get; init; }

Property Value

StyleValue<bool>

Strike

The authored strike-through style.

public StyleValue<RichStrike> Strike { get; init; }

Property Value

StyleValue<RichStrike>

Underline

The authored underline style.

public StyleValue<RichUnderline> Underline { get; init; }

Property Value

StyleValue<RichUnderline>

UnderlineColor

The underline color, or null to use the text color.

public StyleValue<RichColor?> UnderlineColor { get; init; }

Property Value

StyleValue<RichColor?>

VerticalPosition

Normal, script or manual baseline placement. Assigning Script sets this same cascading property.

public StyleValue<RichVerticalPosition> VerticalPosition { get; init; }

Property Value

StyleValue<RichVerticalPosition>