Class TextRun

Class TextRun

Nom dels espais: Aspose.Note Assemblea: Aspose.Note.dll (25.4.0)

La classe representa una peça de text amb estil associat.

public class TextRun
   {
       private string _text;
       private Font _font;
       private ParagraphFormat _paragraphFormat;
       private Style _style;
       public string Text
       {
           get { return _text; }
           set { _text = value; }
       }
       public Font Font
       {
           get { return _font; }
           set { _font = value; }
       }
       public ParagraphFormat ParagraphFormat
       {
           get { return _paragraphFormat; }
           set { _paragraphFormat = value; }
       }
       public Style Style
       {
           get { return _style; }
           set { _style = value; }
       }
   }

Inheritance

object TextRun

Membres heretats

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

Constructors

TextRun (string i TextStyle)

Inicia una nova instància de la classe Aspose.Note.TextRun.

public TextRun(string text, TextStyle style)
   {
      this.Text = text;
      this.Style = style;
   }

Parameters

text string

El text associat.

style TextStyle

El estil .

El text (string)

Inicialitza una nova instància de la classe Aspose.Note.TextRun amb estil estàndard.

public TextRun(string text)
   {
   }

Parameters

text string

El text associat.

TextRun (estil de text)

Inicialitza una nova instància de la classe Aspose.Note.TextRun amb text buit.

public TextRun(TextStyle style)
   {
      this._style = style;
   }

Parameters

style TextStyle

El estil .

El text()

Inicialitza una nova instància de la classe Aspose.Note.TextRun amb text buit i estil default.

public TextRun()
   {
   }

Properties

Length

Obté la longitud del text associat.

public int Length
   {
      get;
   }

Valor de la propietat

int

Style

Obtenir o establir l’estil.

public TextStyle Style
   {
      get { return this.Style; }
      set { this.Style = value; }
   }

Valor de la propietat

TextStyle

Text

Obtenir o posar el text.

public string Text
   {
      get;
      set;
   }

Valor de la propietat

string

 Català