Skip to main content

TextRunProperties Class

Provides a set of properties, such as typeface or foreground brush, that can be applied to a TextRun object. This is an abstract class.

Definition

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

public abstract class TextRunProperties : IEquatable<TextRunProperties>
View Source
InheritanceObject → TextRunProperties
DerivedAvalonia.Media.TextFormatting.GenericTextRunProperties
ImplementsIEquatable(TextRunProperties)

Remarks

The text layout client provides a concrete implementation of this abstract class. This enables the client to implement text run properties in a way that corresponds with the associated formatting store.

Constructors

TextRunProperties()Initializes a new instance of the TextRunProperties class

Properties

BackgroundBrushBrush used to paint background of run.
BaselineAlignmentRun vertical box alignment
CultureInfoRun text culture.
FontFeaturesOptional features of used font.
FontRenderingEmSizeEm size of font used to format and display text
ForegroundBrushBrush used to fill text.
TextDecorationsRun TextDecorations.
TypefaceRun typeface

Methods

Equals(Object)
(Overrides Object.Equals(Object))
Equals(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()
(Overrides Object.GetHashCode())
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)

Operators

Equality(TextRunProperties, TextRunProperties) 
Inequality(TextRunProperties, TextRunProperties) 

See Also

Reference

Avalonia.Media.TextFormatting Namespace