MathematicalText

MathematicalText()

默认构造函数(创建 String.Empty 值)

public MathematicalText()

例子

示例

[C#]
MathematicalText mathText = new MathematicalText();

也可以看看


MathematicalText(char)

使用单个符号创建 MathText

public MathematicalText(char mathSymbol)
范围类型描述
mathSymbolChar单个符号

例子

示例:

[C#]
MathematicalText mathText = new MathematicalText('$');

也可以看看


MathematicalText(string)

从文本创建 MathematicalText

public MathematicalText(string mathText)
范围类型描述
mathTextString文本值

例子

示例:

[C#]
MathematicalText mathText = new MathematicalText("x+y");

也可以看看


MathematicalText(string, IPortionFormat)

从文本和格式设置创建 MathematicalText

public MathematicalText(string mathText, IPortionFormat portionFormat)
范围类型描述
mathTextString文本值
portionFormatIPortionFormat文本格式设置

例子

示例:

[C#]
IPortionFormat format = new PortionFormat() { FontHeight = 12 };
MathematicalText mathText = new MathematicalText("x+y", format);

也可以看看