Table of Contents

Class GenericTextRunProperties

Namespace
Avalonia.Media.TextFormatting
Assembly
Avalonia.Base.dll

Generic implementation of TextRunProperties

public class GenericTextRunProperties : TextRunProperties, IEquatable<TextRunProperties>
Inheritance
GenericTextRunProperties
Implements
Inherited Members

Constructors

GenericTextRunProperties(Typeface, FontFeatureCollection?, double, TextDecorationCollection?, IBrush?, IBrush?, BaselineAlignment, CultureInfo?)

public GenericTextRunProperties(Typeface typeface, FontFeatureCollection? fontFeatures, double fontRenderingEmSize = 12, TextDecorationCollection? textDecorations = null, IBrush? foregroundBrush = null, IBrush? backgroundBrush = null, BaselineAlignment baselineAlignment = BaselineAlignment.Baseline, CultureInfo? cultureInfo = null)

Parameters

typeface Typeface
fontFeatures FontFeatureCollection
fontRenderingEmSize double
textDecorations TextDecorationCollection
foregroundBrush IBrush
backgroundBrush IBrush
baselineAlignment BaselineAlignment
cultureInfo CultureInfo

GenericTextRunProperties(Typeface, double, TextDecorationCollection?, IBrush?, IBrush?, BaselineAlignment, CultureInfo?)

public GenericTextRunProperties(Typeface typeface, double fontRenderingEmSize = 12, TextDecorationCollection? textDecorations = null, IBrush? foregroundBrush = null, IBrush? backgroundBrush = null, BaselineAlignment baselineAlignment = BaselineAlignment.Baseline, CultureInfo? cultureInfo = null)

Parameters

typeface Typeface
fontRenderingEmSize double
textDecorations TextDecorationCollection
foregroundBrush IBrush
backgroundBrush IBrush
baselineAlignment BaselineAlignment
cultureInfo CultureInfo

Properties

BackgroundBrush

Brush used to paint background of run.

public override IBrush? BackgroundBrush { get; }

Property Value

IBrush

BaselineAlignment

Run vertical box alignment

public override BaselineAlignment BaselineAlignment { get; }

Property Value

BaselineAlignment

CultureInfo

Run text culture.

public override CultureInfo? CultureInfo { get; }

Property Value

CultureInfo

FontFeatures

Optional features of used font.

public override FontFeatureCollection? FontFeatures { get; }

Property Value

FontFeatureCollection

FontRenderingEmSize

Em size of font used to format and display text

public override double FontRenderingEmSize { get; }

Property Value

double

ForegroundBrush

Brush used to fill text.

public override IBrush? ForegroundBrush { get; }

Property Value

IBrush

TextDecorations

Run TextDecorations.

public override TextDecorationCollection? TextDecorations { get; }

Property Value

TextDecorationCollection

Typeface

Run typeface

public override Typeface Typeface { get; }

Property Value

Typeface