Class TextRun

Class TextRun

Le nom : Aspose.Note Assemblée: Aspose.Note.dll (25.4.0)

La classe représente un morceau de texte avec un style associé.

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

I membri ereditari

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

Constructors

TextRun (string, style de texte)

Initialisez une nouvelle instance de la classe Aspose.Note.TextRun.

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

Parameters

text string

Le texte associé.

style TextStyle

Le style .

L’écriture (string )

Initialisez une nouvelle instance de la classe Aspose.Note.TextRun avec le style par défaut.

public TextRun(string text)
   {
   }

Parameters

text string

Le texte associé.

TextRun (Style de texte)

Initialisez une nouvelle instance de la classe Aspose.Note.TextRun avec un texte vide.

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

Parameters

style TextStyle

Le style .

Les textes ()

Initialisez une nouvelle instance de la classe Aspose.Note.TextRun avec le texte vide et le style par défaut.

public TextRun()
   {
   }

Properties

Length

La longueur du texte associé.

public int Length
   {
      get;
   }

Valore di proprietà

int

Style

Obtenez ou définissez le style.

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

Valore di proprietà

TextStyle

Text

Obtenez ou mettez le texte.

public string Text
   {
      get;
      set;
   }

Valore di proprietà

string

 Français