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
TypefacefontFeatures
FontFeatureCollectionfontRenderingEmSize
doubletextDecorations
TextDecorationCollectionforegroundBrush
IBrushbackgroundBrush
IBrushbaselineAlignment
BaselineAlignmentcultureInfo
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
TypefacefontRenderingEmSize
doubletextDecorations
TextDecorationCollectionforegroundBrush
IBrushbackgroundBrush
IBrushbaselineAlignment
BaselineAlignmentcultureInfo
CultureInfo
Properties
BackgroundBrush
Brush used to paint background of run.
public override IBrush? BackgroundBrush { get; }
Property Value
BaselineAlignment
Run vertical box alignment
public override BaselineAlignment BaselineAlignment { get; }
Property Value
CultureInfo
Run text culture.
public override CultureInfo? CultureInfo { get; }
Property Value
FontFeatures
Optional features of used font.
public override FontFeatureCollection? FontFeatures { get; }
Property Value
FontRenderingEmSize
Em size of font used to format and display text
public override double FontRenderingEmSize { get; }
Property Value
ForegroundBrush
Brush used to fill text.
public override IBrush? ForegroundBrush { get; }
Property Value
TextDecorations
Run TextDecorations.
public override TextDecorationCollection? TextDecorations { get; }
Property Value
Typeface
Run typeface
public override Typeface Typeface { get; }