Class TextRun

Class TextRun

Název místa: Aspose.Note Shromáždění: Aspose.Note.dll (25.4.0)

Klasa představuje kus textu s přidruženým stylem.

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

Dědiční členové

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

Constructors

TextRun (string, TextStyle)

Začíná nový příklad třídy Aspose.Note.TextRun.

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

Parameters

text string

sdruženého textu.

style TextStyle

V tom stylu.

TextRun (stringová)

Začíná nový příklad třídy Aspose.Note.TextRun s výchozím stylem.

public TextRun(string text)
   {
   }

Parameters

text string

sdruženého textu.

TextRun (textový styl)

Začíná nový příklad třídy Aspose.Note.TextRun s prázdným textem.

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

Parameters

style TextStyle

V tom stylu.

Texty( )

Začíná nový příklad třídy Aspose.Note.TextRun s prázdným textem a výchozím stylem.

public TextRun()
   {
   }

Properties

Length

Obdrží délku souvisejícího textu.

public int Length
   {
      get;
   }

Hodnota nemovitosti

int

Style

Získejte nebo nastavte styl.

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

Hodnota nemovitosti

TextStyle

Text

Obdržíte nebo nastavíte text.

public string Text
   {
      get;
      set;
   }

Hodnota nemovitosti

string

 Čeština