TextRunProperties Class

Summary

Provides a set of properties, such as typeface or foreground brush, that can be applied to a TextRun object. This is an abstract class.
Namespace
Avalonia.Media.TextFormatting
Interfaces
Base Types
  • object
Derived Types
graph BT Type-->Base0["object"] Type-.->Interface0["IEquatable<TextRunProperties>"] Type["TextRunProperties"] class Type type-node Derived0["GenericTextRunProperties"]-->Type click Derived0 "/api/Avalonia.Media.TextFormatting/GenericTextRunProperties"

Syntax

public abstract class TextRunProperties : 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.

Properties

Name Value Summary
BackgroundBrush IBrush
Brush used to paint background of run.
CultureInfo CultureInfo
Run text culture.
FontRenderingEmSize double
Em size of font used to format and display text
ForegroundBrush IBrush
Brush used to fill text.
TextDecorations TextDecorationCollection
Run TextDecorations.
Typeface Typeface
Run typeface

Methods

Name Value Summary
Equals(object) bool
Equals(TextRunProperties) bool
GetHashCode() int

Operators

Name Value Summary
operator !=(TextRunProperties, TextRunProperties) bool
operator ==(TextRunProperties, TextRunProperties) bool