Class TextRun

TextRun class

The class representing a piece of text with associated style.

public class TextRun

Constructors

NameDescription
TextRun()Initializes a new instance of the TextRun class with empty text and default style.
TextRun(string)Initializes a new instance of the TextRun class with default style.
TextRun(TextStyle)Initializes a new instance of the TextRun class with empty text.
TextRun(string, TextStyle)Initializes a new instance of the TextRun class.

Properties

NameDescription
Length { get; }Gets the length of the associated text.
Style { get; set; }Gets or sets the style.
Text { get; set; }Gets or sets the text.

See Also