Skip to main content

TextRun Class

Definition

Assembly:Avalonia.Base
Package:Avalonia
Source:TextRun.cs

Represents a portion of a Avalonia.Media.TextFormatting.TextLine object.

public class TextRun

Inheritance: object -> TextRun

Properties

NameDescription
LengthGets the text source length.
PropertiesA set of properties shared by every characters in the run
TextGets the text run's text.

Length Property

Gets the text source length.

public int Length { get; set; }

Properties Property

A set of properties shared by every characters in the run

public Avalonia.Media.TextFormatting.TextRunProperties Properties { get; set; }

Text Property

Gets the text run's text.

public ReadOnlyMemory<char> Text { get; set; }

Fields

NameDescription
DefaultTextSourceLengthNo summary available.

DefaultTextSourceLength Field

public int DefaultTextSourceLength