com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Interface IMathBlock

  • All Superinterfaces:
    com.aspose.ms.System.Collections.IEnumerable<IMathElement>, com.aspose.ms.System.Collections.Generic.IGenericEnumerable<IMathElement>, IMathElement, IMathElementCollection, java.lang.Iterable<IMathElement>
    All Known Implementing Classes:
    MathBlock


    public interface IMathBlock
    extends IMathElementCollection, IMathElement

    Specifies an instance of mathematical text that contained within a MathParagraph and starts on its own line. All math zones, including equations, expressions, arrays of equations or expressions, and formulas are represented by math block.


    Example:
     
     IMathBlock mathBlock = new MathBlock();
     
    • Method Detail

      • delimit

        IMathDelimiter delimit(char separatorCharacter)

        Delimits all child elements with separator character (without the brackets)


        Example:
         
         IMathBlock mathBlock = new MathematicalText("x").join("y");
         IMathDelimiter delimiterElement = mathBlock.delimit('|');
         
        Parameters:
        separatorCharacter - Character used as a separator
        Returns:
        Instance of IMathDelimiter element
      • enclose

        IMathDelimiter enclose(char beginningCharacter,
                               char endingCharacter,
                               char separatorCharacter)

        Encloses child elements of this block in specified characters such as parenthesis or another as framing and delimit with a separator character


        Example:
         
         IMathBlock mathBlock = new MathematicalText("x").join("y");
         IMathDelimiter delimiterElement = mathBlock.enclose('{', '}', '%');
         
        Parameters:
        beginningCharacter - Beginning character (usually left bracket)
        endingCharacter - Ending character (usually right bracket)
        separatorCharacter - Separator character
        Returns:
        The math element of type MathDelimiter which includes specified characters as framing and delimiter
      • joinBlock

        IMathBlock joinBlock(IMathBlock other)

        Joins another mathematical block with this one


        Example:
         
         IMathBlock block1 = new MathSuperscriptElement(new MathematicalText("c"), new MathematicalText("2")).join(new MathematicalText("="));
         IMathBlock block2 = new MathSuperscriptElement(new MathematicalText("a"), new MathematicalText("2")).join(new MathematicalText("+"))
         .join(new MathSuperscriptElement(new MathematicalText("b"), new MathematicalText("2")));
         IMathBlock block3 = block1.joinBlock(block2);
         
        Parameters:
        other - The joining block
        Returns:
        this mathematical block after joining