com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Interface IMathMatrix

  • All Superinterfaces:
    IMathElement
    All Known Implementing Classes:
    MathMatrix


    public interface IMathMatrix
    extends IMathElement

    Specifies the Matrix object, consisting of child elements laid out in one or more rows and columns. It is important to note that matrices do not have built in delimiters. To place the matrix in the brackets you should use the delimiter object (IMathDelimiter). Null arguments can be used to create gaps in matrices.


    Example:
     
     IMathMatrix matrix = new MathMatrix(2, 3);
     matrix.set_Item(0, 0, new MathematicalText("item.1.1"));
     
    • Method Detail

      • get_Item

        IMathElement get_Item(int row,
                              int column)

        Elements of matrix


        Example:
         
         IMathMatrix matrix = new MathMatrix(2, 3);
         matrix.set_Item(0, 0, new MathematicalText("item.1.1"));
         
        Parameters:
        row - The zero-based index of the row to get item
        column - The zero-based index of the column to get item
        Returns:
        IMathElement
      • set_Item

        void set_Item(int row,
                      int column,
                      IMathElement value)

        Elements of matrix


        Example:
         
         IMathMatrix matrix = new MathMatrix(2, 3);
         matrix.set_Item(0, 0, new MathematicalText("item.1.1"));
         
        Parameters:
        row - The zero-based index of the row to get item
        column - The zero-based index of the column to get item
      • getRowCount

        int getRowCount()

        Number of rows in the matrix


        Example:
         
         IMathMatrix matrix = new MathMatrix(2, 3);
         int rowCount = matrix.getRowCount();
         
      • getColumnCount

        int getColumnCount()

        Number of columns in the matrix


        Example:
         
         IMathMatrix matrix = new MathMatrix(2, 3);
         int columnCount = matrix.getColumnCount();
         
      • getHidePlaceholders

        boolean getHidePlaceholders()

        Hide the placeholders for empty matrix elements Default: false


        Example:
         
         IMathMatrix matrix = new MathMatrix(2, 3);
         matrix.setHidePlaceholders(true);
         
      • setHidePlaceholders

        void setHidePlaceholders(boolean value)

        Hide the placeholders for empty matrix elements Default: false


        Example:
         
         IMathMatrix matrix = new MathMatrix(2, 3);
         matrix.setHidePlaceholders(true);
         
      • getBaseJustification

        int getBaseJustification()

        Specifies the vertical justification respect to surrounding text. Possible values are top, bottom, and center. Default: Center


        Example:
         
         IMathMatrix matrix = new MathMatrix(2, 3);
         matrix.setBaseJustification(MathVerticalAlignment.Center);
         
      • setBaseJustification

        void setBaseJustification(int value)

        Specifies the vertical justification respect to surrounding text. Possible values are top, bottom, and center. Default: Center


        Example:
         
         IMathMatrix matrix = new MathMatrix(2, 3);
         matrix.setBaseJustification(MathVerticalAlignment.Center);
         
      • getMinColumnWidth

        long getMinColumnWidth()

        Minimum column width in twips (1/20th of a point) The gap spacing (also referred to as “Column Gap” or “Gap Width”) is added to the MinColumnWidth to determine the total Matrix Column Spacing (distance between the same edges of different columns). Default: 0.


        Example:
         
         IMathMatrix matrix = new MathMatrix(2, 3);
         matrix.setMinColumnWidth(20);
         
      • setMinColumnWidth

        void setMinColumnWidth(long value)

        Minimum column width in twips (1/20th of a point) The gap spacing (also referred to as “Column Gap” or “Gap Width”) is added to the MinColumnWidth to determine the total Matrix Column Spacing (distance between the same edges of different columns). Default: 0.


        Example:
         
         IMathMatrix matrix = new MathMatrix(2, 3);
         matrix.setMinColumnWidth(20);
         
      • getColumnGapRule

        int getColumnGapRule()

        The type of horizontal spacing between columns of a matrix; Horizontal spacing units can be ems or points (stored as twips). Default: SingleSpacingGap (0)


        Example:
         
         IMathMatrix matrix = new MathMatrix(2, 3);
         matrix.setColumnGapRule(MathSpacingRules.OneAndHalfSpacingGap);
         
      • setColumnGapRule

        void setColumnGapRule(int value)

        The type of horizontal spacing between columns of a matrix; Horizontal spacing units can be ems or points (stored as twips). Default: SingleSpacingGap (0)


        Example:
         
         IMathMatrix matrix = new MathMatrix(2, 3);
         matrix.setColumnGapRule(MathSpacingRules.OneAndHalfSpacingGap);
         
      • getColumnGap

        long getColumnGap()

        The value of horizontal spacing between columns of a matrix; If the ColumnGapRule is set to 3 ("Exactly"), then the unit is interpreted as twips (1/20th of a point) If the ColumnGapRule is set to 4 ("Multiple"), then the unit is interpreted as number of 0.5 em increments. In other cases ignored. Default: 0


        Example:
         
         IMathMatrix matrix = new MathMatrix(2, 3);
         matrix.setColumnGapRule(MathSpacingRules.Exactly);
         matrix.setColumnGap(20);
         
      • setColumnGap

        void setColumnGap(long value)

        The value of horizontal spacing between columns of a matrix; If the ColumnGapRule is set to 3 ("Exactly"), then the unit is interpreted as twips (1/20th of a point) If the ColumnGapRule is set to 4 ("Multiple"), then the unit is interpreted as number of 0.5 em increments. In other cases ignored. Default: 0


        Example:
         
         IMathMatrix matrix = new MathMatrix(2, 3);
         matrix.setColumnGapRule(MathSpacingRules.Exactly);
         matrix.setColumnGap(20);
         
      • getRowGapRule

        int getRowGapRule()

        The type of vertical spacing between rows of a matrix; Vertical spacing units can be lines or points (stored as twips). Default: SingleSpacingGap (0)


        Example:
         
         IMathMatrix matrix = new MathMatrix(2, 3);
         matrix.setRowGapRule(MathSpacingRules.OneAndHalfSpacingGap);
         
      • setRowGapRule

        void setRowGapRule(int value)

        The type of vertical spacing between rows of a matrix; Vertical spacing units can be lines or points (stored as twips). Default: SingleSpacingGap (0)


        Example:
         
         IMathMatrix matrix = new MathMatrix(2, 3);
         matrix.setRowGapRule(MathSpacingRules.OneAndHalfSpacingGap);
         
      • getRowGap

        long getRowGap()

        The value of vertical spacing between rows of a matrix; If the RowGapRule is set to 3 ("Exactly"), then the unit is interpreted as twips (1/20th of a point) If the RowGapRule is set to 4 ("Multiple"), then the unit is interpreted as half-lines. Default: 0


        Example:
         
         IMathMatrix matrix = new MathMatrix(2, 3);
         matrix.setRowGapRule(MathSpacingRules.Exactly);
         matrix.setRowGap(20);
         
      • setRowGap

        void setRowGap(long value)

        The value of vertical spacing between rows of a matrix; If the RowGapRule is set to 3 ("Exactly"), then the unit is interpreted as twips (1/20th of a point) If the RowGapRule is set to 4 ("Multiple"), then the unit is interpreted as half-lines. Default: 0


        Example:
         
         IMathMatrix matrix = new MathMatrix(2, 3);
         matrix.setRowGapRule(MathSpacingRules.Exactly);
         matrix.setRowGap(20);
         
      • getColumnAlignment

        int getColumnAlignment(int columnIndex)

        Get the horizontal alignment of the specified column


        Example:
         
         IMathMatrix matrix = new MathMatrix(2, 3);
         MathHorizontalAlignment alignment = matrix.getColumnAlignment(0);
         
        Parameters:
        columnIndex - Zero-based column index
        Returns:
        Horizontal Alignment of specified column
      • setColumnAlignment

        void setColumnAlignment(int columnIndex,
                                int val)

        Set the horizontal alignment of the specified column


        Example:
         
         IMathMatrix matrix = new MathMatrix(2, 3);
         matrix.setColumnAlignment(0, MathHorizontalAlignment.Left);
         
        Parameters:
        columnIndex - Zero-based column index
        val - New value of horizontal alignment of specified column
      • setColumnsAlignment

        void setColumnsAlignment(int columnIndex,
                                 long columnsCount,
                                 int val)

        Set the horizontal alignment of the specified columns


        Example:
         
         IMathMatrix matrix = new MathMatrix(2, 3);
         matrix.setColumnAlignment(0, 3, MathHorizontalAlignment.Left);
         
        Parameters:
        columnIndex - Zero-based index of the first column to set alignment
        columnsCount - The number of columns to specify the alignment
        val - New value of horizontal alignment of specified column
      • insertRowBefore

        void insertRowBefore(int rowIndex)

        Insert a new row before the specified one Initially all elements in the new row are null.


        Example:
         
         IMathMatrix matrix = new MathMatrix(2, 3);
         matrix.insertRowBefore(1);
         
        Parameters:
        rowIndex - Index of the row before which to insert a new one
      • insertRowAfter

        void insertRowAfter(int rowIndex)

        Insert a new row after the specified one Initially all elements in the new row are null.


        Example:
         
         IMathMatrix matrix = new MathMatrix(2, 3);
         matrix.insertRowAfter(1);
         
        Parameters:
        rowIndex - Index of the row after which to insert a new one
      • deleteRow

        void deleteRow(int rowIndex)

        Deletes the specified row


        Example:
         
         IMathMatrix matrix = new MathMatrix(2, 3);
         matrix.deleteRow(0);
         
        Parameters:
        rowIndex - The zero-based index of the row to delete.
      • insertColumnBefore

        void insertColumnBefore(int columnIndex)

        Insert a new column before the specified one Initially all elements in the new column are null.


        Example:
         
         IMathMatrix matrix = new MathMatrix(2, 3);
         matrix.insertColumnBefore(0);
         
        Parameters:
        columnIndex - Index of the column before which to insert a new one
      • insertColumnAfter

        void insertColumnAfter(int columnIndex)

        Insert a new column after the specified one Initially all elements in the new column are null.


        Example:
         
         IMathMatrix matrix = new MathMatrix(2, 3);
         matrix.insertColumnAfter(0);
         
        Parameters:
        columnIndex - Index of the column after which to insert a new one
      • deleteColumn

        void deleteColumn(int columnIndex)

        Deletes the specified column


        Example:
         
         IMathMatrix matrix = new MathMatrix(2, 3);
         matrix.deleteColumn(0);
         
        Parameters:
        columnIndex - The zero-based index of the column to delete.