Skip to main content

GenericTextRunProperties Class

Generic implementation of TextRunProperties

Definition​

Namespace: Avalonia.Media.TextFormatting
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public class GenericTextRunProperties : TextRunProperties
View Source
InheritanceObject → TextRunProperties → GenericTextRunProperties

Constructors​

GenericTextRunProperties(Typeface, Double, TextDecorationCollection, IBrush, IBrush, BaselineAlignment, CultureInfo)Initializes a new instance of the GenericTextRunProperties class
GenericTextRunProperties(Typeface, FontFeatureCollection, Double, TextDecorationCollection, IBrush, IBrush, BaselineAlignment, CultureInfo)Initializes a new instance of the GenericTextRunProperties class

Properties​

BackgroundBrushBrush used to paint background of run.
(Overrides TextRunProperties.BackgroundBrush)
BaselineAlignmentRun vertical box alignment
(Overrides TextRunProperties.BaselineAlignment)
CultureInfoRun text culture.
(Overrides TextRunProperties.CultureInfo)
FontFeaturesOptional features of used font.
(Overrides TextRunProperties.FontFeatures)
FontRenderingEmSizeEm size of font used to format and display text
(Overrides TextRunProperties.FontRenderingEmSize)
ForegroundBrushBrush used to fill text.
(Overrides TextRunProperties.ForegroundBrush)
TextDecorationsRun TextDecorations.
(Overrides TextRunProperties.TextDecorations)
TypefaceRun typeface
(Overrides TextRunProperties.Typeface)

Methods​

Equals(Object)
(Inherited from TextRunProperties)
Equals(TextRunProperties)
(Inherited from TextRunProperties)
Finalize()Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCode()
(Inherited from TextRunProperties)
GetType()Gets the Type of the current instance.
(Inherited from Object)
MemberwiseClone()Creates a shallow copy of the current Object.
(Inherited from Object)
ToString()Returns a string that represents the current object.
(Inherited from Object)

See Also​

Reference​

Avalonia.Media.TextFormatting Namespace