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)
- C#
- VB
- F#
public abstract class TextRunProperties : IEquatable<TextRunProperties>
Public MustInherit Class TextRunProperties
Implements IEquatable(Of TextRunProperties)
[<AbstractClassAttribute>]
type TextRunProperties =
class
interface IEquatable<TextRunProperties>
end
| Inheritance | Object → TextRunProperties |
| Derived | Avalonia.Media.TextFormatting.GenericTextRunProperties |
| Implements | IEquatable(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
| BackgroundBrush | Brush used to paint background of run. |
| BaselineAlignment | Run vertical box alignment |
| CultureInfo | Run text culture. |
| FontFeatures | Optional features of used font. |
| FontRenderingEmSize | Em size of font used to format and display text |
| ForegroundBrush | Brush used to fill text. |
| TextDecorations | Run TextDecorations. |
| Typeface | Run 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) |