com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Class Cell

  • java.lang.Object
    • com.aspose.slides.Cell
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean getAnchorCenter()
      Determines whether or not text box centered inside a cell.
      ICellFormat getCellFormat()
      Returns the CellFormat object that contains formatting properties for this cell.
      int getColSpan()
      Returns the number of grid columns in the parent table's table grid which shall be spanned by the current cell.
      IColumn getFirstColumn()
      Gets first column of cell.
      int getFirstColumnIndex()
      Returns an index of first column, covered by the cell.
      IRow getFirstRow()
      Gets first row of cell.
      int getFirstRowIndex()
      Returns an index of first row, covered by the cell.
      double getHeight()
      Returns the height of the cell.
      double getMarginBottom()
      Returns or sets the bottom margin in a TextFrame.
      double getMarginLeft()
      Returns or sets the left margin in a TextFrame.
      double getMarginRight()
      Returns or sets the right margin in a TextFrame.
      double getMarginTop()
      Returns or sets the top margin in a TextFrame.
      double getMinimalHeight()
      Returns the minimum height of a cell.
      double getOffsetX()
      Returns a distance from left side of a table to left side of a cell.
      double getOffsetY()
      Returns a distance from top side of a table to top side of a cell.
      com.aspose.slides.IDOMObject getParent_Immediate()
      Returns Parent_Immediate object.
      IPresentation getPresentation()
      Returns the parent presentation of a cell.
      int getRowSpan()
      Returns the number of rows that a merged cell spans.
      IBaseSlide getSlide()
      Returns the parent slide of a cell.
      ITable getTable()
      Returns the parent Table object for a cell.
      byte getTextAnchorType()
      Returns or sets the text anchor type.
      ITextFrame getTextFrame()
      Returns the text frame of a cell.
      byte getTextVerticalType()
      Returns or sets the type of vertical text.
      double getWidth()
      Returns the width of the cell.
      boolean isMergedCell()
      Returns true if the cell is merged with any adjusted cell, false otherwise.
      void setAnchorCenter(boolean value)
      Determines whether or not text box centered inside a cell.
      void setMarginBottom(double value)
      Returns or sets the bottom margin in a TextFrame.
      void setMarginLeft(double value)
      Returns or sets the left margin in a TextFrame.
      void setMarginRight(double value)
      Returns or sets the right margin in a TextFrame.
      void setMarginTop(double value)
      Returns or sets the top margin in a TextFrame.
      void setTextAnchorType(byte value)
      Returns or sets the text anchor type.
      void setTextVerticalType(byte value)
      Returns or sets the type of vertical text.
      void splitByColSpan(int index)
      Splits the cell to two cells by index of column.
      void splitByHeight(double height)
      Splits the cell by height.
      void splitByRowSpan(int index)
      Splits the cell to two cells by index of row.
      void splitByWidth(double width)
      Splits the cell by width.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getOffsetX

        public final double getOffsetX()

        Returns a distance from left side of a table to left side of a cell. Read-only double.

        Specified by:
        getOffsetX in interface ICell
      • getOffsetY

        public final double getOffsetY()

        Returns a distance from top side of a table to top side of a cell. Read-only double.

        Specified by:
        getOffsetY in interface ICell
      • getFirstRowIndex

        public final int getFirstRowIndex()

        Returns an index of first row, covered by the cell. Read-only int.

        Specified by:
        getFirstRowIndex in interface ICell
      • getFirstColumnIndex

        public final int getFirstColumnIndex()

        Returns an index of first column, covered by the cell. Read-only int.

        Specified by:
        getFirstColumnIndex in interface ICell
      • getWidth

        public final double getWidth()

        Returns the width of the cell. Read-only double.

        Specified by:
        getWidth in interface ICell
      • getHeight

        public final double getHeight()

        Returns the height of the cell. Read-only double.

        Specified by:
        getHeight in interface ICell
      • getMinimalHeight

        public final double getMinimalHeight()

        Returns the minimum height of a cell. This is a sum of minimal heights of all rows cowered by the cell. Read-only double.

        Specified by:
        getMinimalHeight in interface ICell
      • getMarginLeft

        public final double getMarginLeft()

        Returns or sets the left margin in a TextFrame. Read/write double.

        Specified by:
        getMarginLeft in interface ICell
      • setMarginLeft

        public final void setMarginLeft(double value)

        Returns or sets the left margin in a TextFrame. Read/write double.

        Specified by:
        setMarginLeft in interface ICell
      • getMarginRight

        public final double getMarginRight()

        Returns or sets the right margin in a TextFrame. Read/write double.

        Specified by:
        getMarginRight in interface ICell
      • setMarginRight

        public final void setMarginRight(double value)

        Returns or sets the right margin in a TextFrame. Read/write double.

        Specified by:
        setMarginRight in interface ICell
      • getMarginTop

        public final double getMarginTop()

        Returns or sets the top margin in a TextFrame. Read/write double.

        Specified by:
        getMarginTop in interface ICell
      • setMarginTop

        public final void setMarginTop(double value)

        Returns or sets the top margin in a TextFrame. Read/write double.

        Specified by:
        setMarginTop in interface ICell
      • getMarginBottom

        public final double getMarginBottom()

        Returns or sets the bottom margin in a TextFrame. Read/write double.

        Specified by:
        getMarginBottom in interface ICell
      • setMarginBottom

        public final void setMarginBottom(double value)

        Returns or sets the bottom margin in a TextFrame. Read/write double.

        Specified by:
        setMarginBottom in interface ICell
      • setTextVerticalType

        public final void setTextVerticalType(byte value)

        Returns or sets the type of vertical text. Read/write TextVerticalType.

        Specified by:
        setTextVerticalType in interface ICell
      • setTextAnchorType

        public final void setTextAnchorType(byte value)

        Returns or sets the text anchor type. Read/write TextAnchorType.

        Specified by:
        setTextAnchorType in interface ICell
      • getAnchorCenter

        public final boolean getAnchorCenter()

        Determines whether or not text box centered inside a cell. Read/write boolean.

        Specified by:
        getAnchorCenter in interface ICell
      • setAnchorCenter

        public final void setAnchorCenter(boolean value)

        Determines whether or not text box centered inside a cell. Read/write boolean.

        Specified by:
        setAnchorCenter in interface ICell
      • getFirstRow

        public final IRow getFirstRow()

        Gets first row of cell. Read-only IRow.

        Specified by:
        getFirstRow in interface ICell
      • getColSpan

        public final int getColSpan()

        Returns the number of grid columns in the parent table's table grid which shall be spanned by the current cell. This property allows cells to have the appearance of being merged, as they span vertical boundaries of other cells in the table. Read-only int.

        Specified by:
        getColSpan in interface ICell
      • getRowSpan

        public final int getRowSpan()

        Returns the number of rows that a merged cell spans. This is used in combination with the vMerge attribute on other cells in order to specify the beginning cell of a horizontal merge. Read-only int.

        Specified by:
        getRowSpan in interface ICell
      • getTable

        public final ITable getTable()

        Returns the parent Table object for a cell. Read-only ITable.

        Specified by:
        getTable in interface ICell
      • isMergedCell

        public final boolean isMergedCell()

        Returns true if the cell is merged with any adjusted cell, false otherwise. Read-only boolean.

        Specified by:
        isMergedCell in interface ICell
      • getCellFormat

        public final ICellFormat getCellFormat()

        Returns the CellFormat object that contains formatting properties for this cell. Read-only ICellFormat.

        Specified by:
        getCellFormat in interface ICell
      • splitByColSpan

        public final void splitByColSpan(int index)

        Splits the cell to two cells by index of column.

        Specified by:
        splitByColSpan in interface ICell
        Parameters:
        index - Index of column.
      • splitByRowSpan

        public final void splitByRowSpan(int index)

        Splits the cell to two cells by index of row.

        Specified by:
        splitByRowSpan in interface ICell
        Parameters:
        index - Index of row.
      • splitByHeight

        public final void splitByHeight(double height)

        Splits the cell by height.

        Specified by:
        splitByHeight in interface ICell
        Parameters:
        height - Height of a row.
      • splitByWidth

        public final void splitByWidth(double width)

        Splits the cell by width.

        Specified by:
        splitByWidth in interface ICell
        Parameters:
        width - Width of a column.
      • getParent_Immediate

        public final com.aspose.slides.IDOMObject getParent_Immediate()

        Returns Parent_Immediate object. Read-only IDOMObject.