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.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
文本风格(string, TextStyle)
启动 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;
}
财产价值
Style
得到或设置风格。
public TextStyle Style
{
get { return this.Style; }
set { this.Style = value; }
}
财产价值
Text
接收或设置文本。
public string Text
{
get;
set;
}