IMathParagraph
IMathParagraph 接口
数学段落,是数学块(IMathBlock)的容器
public interface IMathParagraph : IMathBlockCollection
属性
名称 | 描述 |
---|---|
AsIMathBlockCollection { get; } | 允许获取基础 IMathBlockCollection 接口 IMathBlockCollection |
Justification { get; set; } | 段落对齐 默认值:CenteredAsGroup |
方法
名称 | 描述 |
---|---|
ToLatex() | 获取 LaTeX 格式的数学方程 |
WriteAsMathMl(Stream) | 将此 IMathParagraph 的内容保存为 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;