Class TextRun

Class TextRun

نام ها : Aspose.Note جمع آوری: Aspose.Note.dll (25.4.0)

کلاس نشان دهنده یک قطعه از متن با سبک مرتبط است.

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

اعضای ارثی

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

Constructors

TextRun (تصویر، سبک متن)

یک مثال جدید از کلاس Aspose.Note.TextRun آغاز می شود.

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

Parameters

text string

متن مرتبط است.

style TextStyle

سبک است.

کلمات کلیدی ( String )

یک مثال جدید از کلاس Aspose.Note.TextRun با سبک پیش فرض آغاز می شود.

public TextRun(string text)
   {
   }

Parameters

text string

متن مرتبط است.

TextRun (نمایش متن)

یک مثال جدید از کلاس Aspose.Note.TextRun با متن خالی آغاز می شود.

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

Parameters

style TextStyle

سبک است.

متن( )

یک مثال جدید از کلاس Aspose.Note.TextRun با متن خالی و سبک پیش فرض آغاز می شود.

public TextRun()
   {
   }

Properties

Length

طول متن مرتبط را در نظر بگیرید.

public int Length
   {
      get;
   }

ارزش املاک

int

Style

سبک را انتخاب و یا تنظیم کنید.

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

ارزش املاک

TextStyle

Text

دریافت و یا تنظیم متن.

public string Text
   {
      get;
      set;
   }

ارزش املاک

string

 فارسی