Class TextRun
Nome do espaço: Aspose.Note Assembleia: Aspose.Note.dll (25.4.0)
A classe representa um pedaço de texto com estilo associado.
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
Membros herdados
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
TextRun (string e TextStyle)
Inicia uma nova instância da classe Aspose.Note.TextRun.
public TextRun(string text, TextStyle style)
{
this.Text = text;
this.Style = style;
}
Parameters
text
string
O texto associado.
style
TextStyle
O estilo .
Título de texto (string)
Inicia uma nova instância da classe Aspose.Note.TextRun com estilo padrão.
public TextRun(string text)
{
}
Parameters
text
string
O texto associado.
TextRun (Style de texto)
Inicia uma nova instância da classe Aspose.Note.TextRun com texto vazio.
public TextRun(TextStyle style)
{
this._style = style;
}
Parameters
style
TextStyle
O estilo .
Título ( )
Inicia uma nova instância da classe Aspose.Note.TextRun com texto vazio e estilo padrão.
public TextRun()
{
}
Properties
Length
Tome o comprimento do texto associado.
public int Length
{
get;
}
Valor da propriedade
Style
Faça ou coloque o estilo.
public TextStyle Style
{
get { return this.Style; }
set { this.Style = value; }
}
Valor da propriedade
Text
Receba ou coloca o texto.
public string Text
{
get;
set;
}