Class TextRun

Class TextRun

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

The class representing a piece of text with associated style.

public class TextRun
{
    private string _text;
    private Font _font;
    private ParagraphFormat _paragraphFormat;
    private int _code;
    public string Text
    {
        get => this._text;
        set => this._text = value;
    }
    public Font Font
    {
        get => this._font;
        set => this._font = value;
    }
    public ParagraphFormat ParagraphFormat
    {
        get => this._paragraphFormat;
        set => this._paragraphFormat = value;
    }
    public int Code
    {
        get => this._code;
        set => this._code = value;
    }
}

Inheritance

object TextRun

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)
   {
      this.Text = 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)
   {
       this._style = 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 { return _style; }
      set { _style = value; }
   }

Property Value

TextStyle

Text

Gets or sets the text.

public string Text
    {
        get;
        set;
    }

Property Value

string

 English