Class TextRun

Class TextRun

Nombre del espacio: Aspose.Note Asamblea: Aspose.Note.dll (25.4.0)

La clase representa una pieza de texto con estilo asociado.

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

Miembros heredados

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

Constructors

TextRun (string y TextStyle)

Inicia una nueva instancia de la clase Aspose.Note.TextRun.

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

Parameters

text string

El texto asociado.

style TextStyle

El estilo.

Título de texto (string)

Inicia una nueva instancia de la clase Aspose.Note.TextRun con estilo predeterminado.

public TextRun(string text)
   {
   }

Parameters

text string

El texto asociado.

TextRun (estilo de texto)

Inicia una nueva instancia de la clase Aspose.Note.TextRun con texto vacío.

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

Parameters

style TextStyle

El estilo.

El texto()

Inicia una nueva instancia de la clase Aspose.Note.TextRun con texto vacío y estilo predeterminado.

public TextRun()
   {
   }

Properties

Length

Tiene la longitud del texto asociado.

public int Length
   {
      get;
   }

Valor de la propiedad

int

Style

Obtenga o establece el estilo.

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

Valor de la propiedad

TextStyle

Text

Obtenga o coloca el texto.

public string Text
   {
      get;
      set;
   }

Valor de la propiedad

string

 Español