Class TextRun

Class TextRun

Nazwa przestrzeń: Aspose.Note Zgromadzenie: Aspose.Note.dll (25.4.0)

Klasa reprezentuje kawałek tekstu z powiązanym 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

Dziedziczeni członkowie

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

Constructors

TextRun (string, styl tekstowy)

Zaczyna się nowa instancja klasy Aspose.Note.TextRun.

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

Parameters

text string

związanego z tekstem.

style TextStyle

w stylu .

Tłumaczenie (string )

Inicjalizuje nową instancję klasy Aspose.Note.TextRun ze standardowym stylem.

public TextRun(string text)
   {
   }

Parameters

text string

związanego z tekstem.

TextRun (Style tekstowe)

Inicjalizuje nową instancję klasy Aspose.Note.TextRun z pustym tekstem.

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

Parameters

style TextStyle

w stylu .

Tłumaczenie ( )

Inicjalizuje nową instancję klasy Aspose.Note.TextRun z pustym tekstem i standardowym stylem.

public TextRun()
   {
   }

Properties

Length

Otrzymuje długość powiązanego tekstu.

public int Length
   {
      get;
   }

Wartość nieruchomości

int

Style

Zostaw lub ustaw styl.

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

Wartość nieruchomości

TextStyle

Text

Dostęp lub ustawienie tekstu.

public string Text
   {
      get;
      set;
   }

Wartość nieruchomości

string

 Polski