Class TextRun
Il nome: Aspose.Note Assemblea: Aspose.Note.dll (25.4.0)
La classe rappresenta un pezzo di testo con uno stile associato.
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
I membri ereditari
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
TextRun (string, stile di testo)
Inizia una nuova instanza della classe Aspose.Note.TextRun.
public TextRun(string text, TextStyle style)
{
this.Text = text;
this.Style = style;
}
Parameters
text
string
Il testo associato.
style
TextStyle
Lo stile .
Il testo (string )
Inizia una nuova instanza della classe Aspose.Note.TextRun con lo stile predefinito.
public TextRun(string text)
{
}
Parameters
text
string
Il testo associato.
Il testo (TextStyle)
Inizia una nuova instanza della classe Aspose.Note.TextRun con testo vuoto.
public TextRun(TextStyle style)
{
this._style = style;
}
Parameters
style
TextStyle
Lo stile .
Il testo()
Inizia una nuova instanza della classe Aspose.Note.TextRun con testo vuoto e stile predefinito.
public TextRun()
{
}
Properties
Length
Riceve la lunghezza del testo associato.
public int Length
{
get;
}
Valore di proprietà
Style
Fate o impostate lo stile.
public TextStyle Style
{
get { return this.Style; }
set { this.Style = value; }
}
Valore di proprietà
Text
Ricevi o metti il testo.
public string Text
{
get;
set;
}