public interface IMathParagraph extends IMathBlockCollection
Mathematical paragraph that is a container for mathematical blocks (IMathBlock)
Example:IAutoShape shape = slide.getShapes().addMathShape(x, y, width, height); IMathParagraph mathParagraph = ((MathPortion)shape.getTextFrame().getParagraphs().get_Item(0).getPortions().get_Item(0)).getMathParagraph(); mathParagraph.setJustification(MathJustification.LeftJustified);
| Modifier and Type | Method and Description |
|---|---|
int |
getJustification()
Paragraph Justification
Default value: CenteredAsGroup
|
void |
setJustification(int value)
Paragraph Justification
Default value: CenteredAsGroup
|
java.lang.String |
toLatex()
Gets mathematical equation in LaTeX format
|
void |
writeAsMathMl(java.io.OutputStream stream)
Saves content of this
IMathParagraph as MathML |
add, clear, contains, get_Item, getCount, indexOf, insert, remove, removeAt, set_Itemint getJustification()
Paragraph Justification Default value: CenteredAsGroup
Example:IAutoShape shape = slide.getShapes().addMathShape(x, y, width, height); IMathParagraph mathParagraph = ((MathPortion)shape.getTextFrame().getParagraphs().get_Item(0).getPortions().get_Item(0)).getMathParagraph(); mathParagraph.setJustification(MathJustification.LeftJustified);
void setJustification(int value)
Paragraph Justification Default value: CenteredAsGroup
Example:IAutoShape shape = slide.getShapes().addMathShape(x, y, width, height); IMathParagraph mathParagraph = ((MathPortion)shape.getTextFrame().getParagraphs().get_Item(0).getPortions().get_Item(0)).getMathParagraph(); mathParagraph.setJustification(MathJustification.LeftJustified);
void writeAsMathMl(java.io.OutputStream stream)
Saves content of this IMathParagraph as MathML
stream - Target streamjava.lang.String toLatex()
Gets mathematical equation in LaTeX format
Example:IAutoShape shape = slide.getShapes().addMathShape(x, y, width, height); IMathParagraph mathParagraph = ((MathPortion)shape.getTextFrame().getParagraphs().get_Item(0).getPortions().get_Item(0)).getMathParagraph(); mathParagraph.add(new MathematicalText("a").join("+").join(new MathematicalText("b").join("=").join(new MathematicalText("c")))); String mathLatex = mathParagraph.toLatex();
Copyright © 2004-2025 Aspose Pty Ltd. All Rights Reserved.