Class TextRun

Class TextRun

Namespace: Aspose.Note
Assembly: Aspose.Note.dll (24.12.0)

The class representing a piece of text with associated style.

public class TextRun

Inheritance

objectTextRun

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

TextRun(string, TextStyle)

Initializes a new instance of the Aspose.Note.TextRun class.

public TextRun(string text, TextStyle style)

Parameters

text string

The associated text.

style TextStyle

The style.

TextRun(string)

Initializes a new instance of the Aspose.Note.TextRun class with default style.

public TextRun(string text)

Parameters

text string

The associated text.

TextRun(TextStyle)

Initializes a new instance of the Aspose.Note.TextRun class with empty text.

public TextRun(TextStyle style)

Parameters

style TextStyle

The style.

TextRun()

Initializes a new instance of the Aspose.Note.TextRun class with empty text and default style.

public TextRun()

Properties

Length

Gets the length of the associated text.

public int Length { get; }

Property Value

int

Style

Gets or sets the style.

public TextStyle Style { get; set; }

Property Value

TextStyle

Text

Gets or sets the text.

public string Text { get; set; }

Property Value

string