IMathParagraph

All Implemented Interfaces: com.aspose.slides.IMathBlockCollection

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);

Methods

MethodDescription
getJustification()Paragraph Justification Default value: CenteredAsGroup
setJustification(int value)Paragraph Justification Default value: CenteredAsGroup
writeAsMathMl(OutputStream stream)Saves content of this IMathParagraph as MathML

getJustification()

public abstract int 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);

Returns: int

setJustification(int value)

public abstract 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);

Parameters:

ParameterTypeDescription
valueint

writeAsMathMl(OutputStream stream)

public abstract void writeAsMathMl(OutputStream stream)

Saves content of this IMathParagraph as MathML

Parameters:

ParameterTypeDescription
streamjava.io.OutputStreamTarget stream