com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Interface IMathParagraph

  • All Superinterfaces:
    com.aspose.ms.System.Collections.IEnumerable<IMathBlock>, com.aspose.ms.System.Collections.Generic.IGenericEnumerable<IMathBlock>, IMathBlockCollection, java.lang.Iterable<IMathBlock>
    All Known Implementing Classes:
    MathParagraph


    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);
     
    • Method Detail

      • getJustification

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

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

        void writeAsMathMl(java.io.OutputStream stream)

        Saves content of this IMathParagraph as MathML

        Parameters:
        stream - Target stream