Cell
Cell class
Represents a cell of a table.
getAnchorCenter
| Name | Description |
|---|
| getAnchorCenter() | Determines whether or not text box centered inside a cell. Read/write boolean. |
Returns:
boolean
| Name | Description |
|---|
| getCellFormat() | Returns the CellFormat object that contains formatting properties for this cell. Read-only ICellFormat. |
Returns:
CellFormat
getColSpan
| Name | Description |
|---|
| 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
| Name | Description |
|---|
| getFirstColumn() | Gets first column of cell. Read-only IColumn. |
Returns:
Column
getFirstColumnIndex
| Name | Description |
|---|
| getFirstColumnIndex() | Returns an index of first column, covered by the cell. Read-only int. |
Returns:
int
getFirstRow
| Name | Description |
|---|
| getFirstRow() | Gets first row of cell. Read-only IRow. |
Returns:
Row
getFirstRowIndex
| Name | Description |
|---|
| getFirstRowIndex() | Returns an index of first row, covered by the cell. Read-only int. |
Returns:
int
getHeight
| Name | Description |
|---|
| getHeight() | Returns the height of the cell. Read-only double. |
Returns:
double
getMarginBottom
| Name | Description |
|---|
| getMarginBottom() | Returns or sets the bottom margin in a TextFrame. Read/write double. |
Returns:
double
getMarginLeft
| Name | Description |
|---|
| getMarginLeft() | Returns or sets the left margin in a TextFrame. Read/write double. |
Returns:
double
getMarginRight
| Name | Description |
|---|
| getMarginRight() | Returns or sets the right margin in a TextFrame. Read/write double. |
Returns:
double
getMarginTop
| Name | Description |
|---|
| getMarginTop() | Returns or sets the top margin in a TextFrame. Read/write double. |
Returns:
double
getMinimalHeight
| Name | Description |
|---|
| 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
| Name | Description |
|---|
| getOffsetX() | Returns a distance from left side of a table to left side of a cell. Read-only double. |
Returns:
double
getOffsetY
| Name | Description |
|---|
| getOffsetY() | Returns a distance from top side of a table to top side of a cell. Read-only double. |
Returns:
double
getPresentation
| Name | Description |
|---|
| getPresentation() | Returns the parent presentation of a cell. Read-only IPresentation. |
Returns:
Presentation
getRowSpan
| Name | Description |
|---|
| 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
| Name | Description |
|---|
| getSlide() | Returns the parent slide of a cell. Read-only IBaseSlide. |
Returns:
Slide, MasterSlide, LayoutSlide, MasterHandoutSlide, NotesSlide, BaseSlide, MasterNotesSlide
getTable
| Name | Description |
|---|
| getTable() | Returns the parent Table object for a cell. Read-only ITable. |
Returns:
Table
getTextAnchorType
| Name | Description |
|---|
| getTextAnchorType() | Returns or sets the text anchor type. Read/write TextAnchorType. |
Returns:
byte
getTextFrame
| Name | Description |
|---|
| getTextFrame() | Returns the text frame of a cell. Read-only ITextFrame. |
Returns:
TextFrame
getTextVerticalType
| Name | Description |
|---|
| getTextVerticalType() | Returns or sets the type of vertical text. Read/write TextVerticalType. |
Returns:
byte
getWidth
| Name | Description |
|---|
| getWidth() | Returns the width of the cell. Read-only double. |
Returns:
double
isMergedCell
| Name | Description |
|---|
| isMergedCell() | Returns true if the cell is merged with any adjusted cell, false otherwise. Read-only boolean. |
Returns:
boolean
setAnchorCenter
| Name | Description |
|---|
| setAnchorCenter(boolean) | Determines whether or not text box centered inside a cell. Read/write boolean. |
setMarginBottom
| Name | Description |
|---|
| setMarginBottom(double) | Returns or sets the bottom margin in a TextFrame. Read/write double. |
setMarginLeft
| Name | Description |
|---|
| setMarginLeft(double) | Returns or sets the left margin in a TextFrame. Read/write double. |
setMarginRight
| Name | Description |
|---|
| setMarginRight(double) | Returns or sets the right margin in a TextFrame. Read/write double. |
setMarginTop
| Name | Description |
|---|
| setMarginTop(double) | Returns or sets the top margin in a TextFrame. Read/write double. |
setTextAnchorType
| Name | Description |
|---|
| setTextAnchorType(byte) | Returns or sets the text anchor type. Read/write TextAnchorType. |
setTextVerticalType
| Name | Description |
|---|
| setTextVerticalType(byte) | Returns or sets the type of vertical text. Read/write TextVerticalType. |
splitByColSpan
| Name | Description |
|---|
| splitByColSpan(int) | Splits the cell to two cells by index of column. |
Parameters:
| Name | Type | Description |
|---|
| index | int | Index of column. |
splitByHeight
| Name | Description |
|---|
| splitByHeight(double) | Splits the cell by height. |
Parameters:
| Name | Type | Description |
|---|
| height | double | Height of a row. |
splitByRowSpan
| Name | Description |
|---|
| splitByRowSpan(int) | Splits the cell to two cells by index of row. |
Parameters:
| Name | Type | Description |
|---|
| index | int | Index of row. |
splitByWidth
| Name | Description |
|---|
| splitByWidth(double) | Splits the cell by width. |
Parameters:
| Name | Type | Description |
|---|
| width | double | Width of a column. |