MathParagraph
内容
[
隐藏
]MathParagraph 类
数学段落,是数学块 (IMathBlock) 的容器
public class MathParagraph : IMathParagraph
构造函数
| 名称 | 描述 |
|---|---|
| MathParagraph() | 初始化 MathParagraph 类的新实例。 |
| MathParagraph(IMathBlock) | 初始化 MathParagraph 类的新实例。 |
属性
| 名称 | 描述 |
|---|---|
| Count { get; } | 获取集合实际包含的元素数量。只读 Int32。 |
| Item { get; set; } | 获取指定索引处的项。只读 IMathBlock。 |
| Justification { get; set; } | Paragraph Justification 默认值:CenteredAsGroup |
方法
| 名称 | 描述 |
|---|---|
| Add(IMathBlock) | 在集合末尾添加 IMMathBlock。 |
| Clear() | 从集合中移除所有元素。 |
| Contains(IMathBlock) | 确定集合是否包含特定值。 |
| IndexOf(IMathBlock) | 确定集合中特定 IMathBlock 的索引。 |
| Insert(int, IMathBlock) | 在指定索引处将 IMathBlock 插入集合。 |
| Remove(IMathBlock) | 从集合中移除特定对象的第一次出现。/> |
| RemoveAt(int) | 从集合中移除指定索引处的项。 |
| ToLatex() | 获取 LaTeX 格式的数学公式 |
| WriteAsMathMl(Stream) | 将此 MathParagraph 的内容保存为 MathML |
示例
示例:
[C#]
IAutoShape shape = slide.Shapes.AddMathShape(x, y, width, height);
IMathParagraph mathParagraph = (shape.TextFrame.Paragraphs[0].Portions[0] as MathPortion).MathParagraph;
mathParagraph.Justification = MathJustification.LeftJustified;