IMathParagraph
IMathParagraph 接口
Mathematical paragraph that is a container for mathematical blocks (IMathBlock)
public interface IMathParagraph : IMathBlockCollection
属性
| 名称 | 描述 |
|---|---|
| AsIMathBlockCollection { get; } | Allows to get base IMathBlockCollection interface IMathBlockCollection |
| Justification { get; set; } | Paragraph Justification Default value: CenteredAsGroup |
方法
| 名称 | 描述 |
|---|---|
| ToLatex() | Gets mathematical equation in LaTeX format |
| WriteAsMathMl(Stream) | Saves content of this IMathParagraph as MathML |
示例
Example:
[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;