Cell

Cell class

Represents a cell of a table.

getAnchorCenter

NameDescription
getAnchorCenter()Determines whether or not text box centered inside a cell. Read/write boolean.

Returns: boolean


getCellFormat

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

Returns: CellFormat


getColSpan

NameDescription
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.

Returns: int


getFirstColumn

NameDescription
getFirstColumn()Gets first column of cell. Read-only IColumn.

Returns: Column


getFirstColumnIndex

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

Returns: int


getFirstRow

NameDescription
getFirstRow()Gets first row of cell. Read-only IRow.

Returns: Row


getFirstRowIndex

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

Returns: int


getHeight

NameDescription
getHeight()Returns the height of the cell. Read-only double.

Returns: double


getMarginBottom

NameDescription
getMarginBottom()Returns or sets the bottom margin in a TextFrame. Read/write double.

Returns: double


getMarginLeft

NameDescription
getMarginLeft()Returns or sets the left margin in a TextFrame. Read/write double.

Returns: double


getMarginRight

NameDescription
getMarginRight()Returns or sets the right margin in a TextFrame. Read/write double.

Returns: double


getMarginTop

NameDescription
getMarginTop()Returns or sets the top margin in a TextFrame. Read/write double.

Returns: double


getMinimalHeight

NameDescription
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.

Returns: double


getOffsetX

NameDescription
getOffsetX()Returns a distance from left side of a table to left side of a cell. Read-only double.

Returns: double


getOffsetY

NameDescription
getOffsetY()Returns a distance from top side of a table to top side of a cell. Read-only double.

Returns: double


getPresentation

NameDescription
getPresentation()Returns the parent presentation of a cell. Read-only IPresentation.

Returns: Presentation


getRowSpan

NameDescription
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.

Returns: int


getSlide

NameDescription
getSlide()Returns the parent slide of a cell. Read-only IBaseSlide.

Returns: BaseSlide, LayoutSlide, NotesSlide, MasterSlide, MasterHandoutSlide, Slide, MasterNotesSlide


getTable

NameDescription
getTable()Returns the parent Table object for a cell. Read-only ITable.

Returns: Table


getTextAnchorType

NameDescription
getTextAnchorType()Returns or sets the text anchor type. Read/write TextAnchorType.

Returns: byte


getTextFrame

NameDescription
getTextFrame()Returns the text frame of a cell. Read-only ITextFrame.

Returns: TextFrame


getTextVerticalType

NameDescription
getTextVerticalType()Returns or sets the type of vertical text. Read/write TextVerticalType.

Returns: byte


getWidth

NameDescription
getWidth()Returns the width of the cell. Read-only double.

Returns: double


isMergedCell

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

Returns: boolean


setAnchorCenter

NameDescription
setAnchorCenter(boolean)Determines whether or not text box centered inside a cell. Read/write boolean.

setMarginBottom

NameDescription
setMarginBottom(double)Returns or sets the bottom margin in a TextFrame. Read/write double.

setMarginLeft

NameDescription
setMarginLeft(double)Returns or sets the left margin in a TextFrame. Read/write double.

setMarginRight

NameDescription
setMarginRight(double)Returns or sets the right margin in a TextFrame. Read/write double.

setMarginTop

NameDescription
setMarginTop(double)Returns or sets the top margin in a TextFrame. Read/write double.

setTextAnchorType

NameDescription
setTextAnchorType(byte)Returns or sets the text anchor type. Read/write TextAnchorType.

setTextVerticalType

NameDescription
setTextVerticalType(byte)Returns or sets the type of vertical text. Read/write TextVerticalType.

splitByColSpan

NameDescription
splitByColSpan(int)Splits the cell to two cells by index of column.

Parameters:

NameTypeDescription
indexintIndex of column.

splitByHeight

NameDescription
splitByHeight(double)Splits the cell by height.

Parameters:

NameTypeDescription
heightdoubleHeight of a row.

splitByRowSpan

NameDescription
splitByRowSpan(int)Splits the cell to two cells by index of row.

Parameters:

NameTypeDescription
indexintIndex of row.

splitByWidth

NameDescription
splitByWidth(double)Splits the cell by width.

Parameters:

NameTypeDescription
widthdoubleWidth of a column.