Class TextRun

Class TextRun

Pôvodný názov: Aspose.Note Zhromaždenie: Aspose.Note.dll (25.4.0)

Trieda predstavuje kus textu so spojeným štýlom.

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

Z dedičných členov

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

Constructors

TextRun (string, text štýl)

Initalizuje novú inštanciu triedy Aspose.Note.TextRun.

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

Parameters

text string

Súvisiaci text .

style TextStyle

V štýle .

TextRun (stringová)

Iniciuje novú inštanciu triedy Aspose.Note.TextRun s predvoleným štýlom.

public TextRun(string text)
   {
   }

Parameters

text string

Súvisiaci text .

TextRun (textový štýl)

Initalizuje novú inštanciu triedy Aspose.Note.TextRun s prázdnym textom.

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

Parameters

style TextStyle

V štýle .

TextRun( )

Iniciuje novú inštanciu triedy Aspose.Note.TextRun s prázdnym textom a predvoleným štýlom.

public TextRun()
   {
   }

Properties

Length

Dostane dĺžku pridruženého textu.

public int Length
   {
      get;
   }

Hodnota nehnuteľnosti

int

Style

Získať alebo nastaviť štýl.

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

Hodnota nehnuteľnosti

TextStyle

Text

Získať alebo nastaviť text.

public string Text
   {
      get;
      set;
   }

Hodnota nehnuteľnosti

string

 Slovenčina