MathPortion
内容
[
隐藏
]MathPortion class
表示内部有数学上下文的部分。
public sealed class MathPortion : Portion, IMathPortion
构造函数
姓名 | 描述 |
---|---|
MathPortion() | 初始化 MathPortion 类的新实例。 |
特性
姓名 | 描述 |
---|---|
Field { get; } | 返回此部分的字段。 只读IField 。 |
MathParagraph { get; } | 数学段落 |
PortionFormat { get; } | 返回oformatting bject,其中包含未应用继承的文本部分的显式设置格式属性。 只读IPortionFormat 。 |
Text { get; set; } | 获取或设置部分的纯文本。 读/写String。 |
方法
姓名 | 描述 |
---|---|
AddField(IFieldType) | 将此部分转换为自动更新的字段。 |
AddField(string) | 将此部分转换为自动更新的字段。 |
GetCoordinates() | 获取部分开始的坐标。 point 的 X 坐标表示 从第一个字符开始的部分,包括左侧轴承。 Y 坐标 包括顶侧轴承。 |
GetRect() | 获取边界部分的矩形坐标。 rect 包括部分 文本的所有行,包括空行。 |
RemoveField() | 将此字段部分转换为简单部分。 |
例子
示例:
[C#]
using (Presentation pres = new Presentation())
{
IAutoShape shape = pres.Slides[0].Shapes.AddMathShape(0, 0, 300, 50);
IParagraph paragraph = shape.TextFrame.Paragraphs[0];
MathPortion mathPortion = new MathPortion();
paragraph.Portions.Add(mathPortion);
}
也可以看看
- class Portion
- interface IMathPortion
- 命名空间 Aspose.Slides.MathText
- 部件 Aspose.Slides