public class Cell extends java.lang.Object implements ICell
Represents a cell of a table.
Modifier and Type | Method and Description |
---|---|
boolean |
getAnchorCenter()
Determines whether or not text box centered inside a cell.
|
ILineFormat |
getBorderBottom()
Deprecated.
Use Cell.CellFormat.BorderBottom instead. The property will be removed after release of version 20.8.
|
ILineFormat |
getBorderDiagonalDown()
Deprecated.
Use Cell.CellFormat.BorderDiagonalDown instead. The property will be removed after release of version 20.8.
|
ILineFormat |
getBorderDiagonalUp()
Deprecated.
Use Cell.CellFormat.BorderDiagonalUp instead. The property will be removed after release of version 20.8.
|
ILineFormat |
getBorderLeft()
Deprecated.
Use Cell.CellFormat.BorderLeft instead. The property will be removed after release of version 20.8.
|
ILineFormat |
getBorderRight()
Deprecated.
Use Cell.CellFormat.BorderRight instead. The property will be removed after release of version 20.8.
|
ILineFormat |
getBorderTop()
Deprecated.
Use Cell.CellFormat.BorderTop instead. The property will be removed after release of version 20.8.
|
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.
|
IFillFormat |
getFillFormat()
Deprecated.
Use Cell.CellFormat.FillFormat instead. The property will be removed after release of version 20.8.
|
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.
|
public final double getOffsetX()
Returns a distance from left side of a table to left side of a cell.
Read-only double
.
getOffsetX
in interface ICell
public final double getOffsetY()
Returns a distance from top side of a table to top side of a cell.
Read-only double
.
getOffsetY
in interface ICell
public final int getFirstRowIndex()
Returns an index of first row, covered by the cell.
Read-only int
.
getFirstRowIndex
in interface ICell
public final int getFirstColumnIndex()
Returns an index of first column, covered by the cell.
Read-only int
.
getFirstColumnIndex
in interface ICell
public final double getWidth()
Returns the width of the cell.
Read-only double
.
public final double getHeight()
Returns the height of the cell.
Read-only double
.
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
.
getMinimalHeight
in interface ICell
public final double getMarginLeft()
Returns or sets the left margin in a TextFrame.
Read/write double
.
getMarginLeft
in interface ICell
public final void setMarginLeft(double value)
Returns or sets the left margin in a TextFrame.
Read/write double
.
setMarginLeft
in interface ICell
public final double getMarginRight()
Returns or sets the right margin in a TextFrame.
Read/write double
.
getMarginRight
in interface ICell
public final void setMarginRight(double value)
Returns or sets the right margin in a TextFrame.
Read/write double
.
setMarginRight
in interface ICell
public final double getMarginTop()
Returns or sets the top margin in a TextFrame.
Read/write double
.
getMarginTop
in interface ICell
public final void setMarginTop(double value)
Returns or sets the top margin in a TextFrame.
Read/write double
.
setMarginTop
in interface ICell
public final double getMarginBottom()
Returns or sets the bottom margin in a TextFrame.
Read/write double
.
getMarginBottom
in interface ICell
public final void setMarginBottom(double value)
Returns or sets the bottom margin in a TextFrame.
Read/write double
.
setMarginBottom
in interface ICell
@Deprecated public final IFillFormat getFillFormat()
Returns a cell fill properties object.
Read-only IFillFormat
.
getFillFormat
in interface ICell
@Deprecated public final ILineFormat getBorderLeft()
Returns a left border line properties object.
Read-only ILineFormat
.
getBorderLeft
in interface ICell
@Deprecated public final ILineFormat getBorderTop()
Returns a top border line properties object.
Read-only ILineFormat
.
getBorderTop
in interface ICell
@Deprecated public final ILineFormat getBorderRight()
Returns a right border line properties object.
Read-only ILineFormat
.
getBorderRight
in interface ICell
@Deprecated public final ILineFormat getBorderBottom()
Returns a bottom border line properties object.
Read-only ILineFormat
.
getBorderBottom
in interface ICell
@Deprecated public final ILineFormat getBorderDiagonalDown()
Returns a top-left to bottom-right diagonal line properties object.
Read-only ILineFormat
.
getBorderDiagonalDown
in interface ICell
@Deprecated public final ILineFormat getBorderDiagonalUp()
Returns a bottom-left to top-right diagonal line properties object.
Read-only ILineFormat
.
getBorderDiagonalUp
in interface ICell
public final byte getTextVerticalType()
Returns or sets the type of vertical text.
Read/write TextVerticalType
.
getTextVerticalType
in interface ICell
public final void setTextVerticalType(byte value)
Returns or sets the type of vertical text.
Read/write TextVerticalType
.
setTextVerticalType
in interface ICell
public final byte getTextAnchorType()
Returns or sets the text anchor type.
Read/write TextAnchorType
.
getTextAnchorType
in interface ICell
public final void setTextAnchorType(byte value)
Returns or sets the text anchor type.
Read/write TextAnchorType
.
setTextAnchorType
in interface ICell
public final boolean getAnchorCenter()
Determines whether or not text box centered inside a cell.
Read/write boolean
.
getAnchorCenter
in interface ICell
public final void setAnchorCenter(boolean value)
Determines whether or not text box centered inside a cell.
Read/write boolean
.
setAnchorCenter
in interface ICell
public final IRow getFirstRow()
Gets first row of cell.
Read-only IRow
.
getFirstRow
in interface ICell
public final IColumn getFirstColumn()
Gets first column of cell.
Read-only IColumn
.
getFirstColumn
in interface ICell
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
.
getColSpan
in interface ICell
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
.
getRowSpan
in interface ICell
public final ITextFrame getTextFrame()
Returns the text frame of a cell.
Read-only ITextFrame
.
getTextFrame
in interface ICell
public final ITable getTable()
Returns the parent Table object for a cell.
Read-only ITable
.
public final boolean isMergedCell()
Returns true if the cell is merged with any adjusted cell, false otherwise.
Read-only boolean
.
isMergedCell
in interface ICell
public final ICellFormat getCellFormat()
Returns the CellFormat object that contains formatting properties for this cell.
Read-only ICellFormat
.
getCellFormat
in interface ICell
public final void splitByColSpan(int index)
Splits the cell to two cells by index of column.
splitByColSpan
in interface ICell
index
- Index of column.public final void splitByRowSpan(int index)
Splits the cell to two cells by index of row.
splitByRowSpan
in interface ICell
index
- Index of row.public final void splitByHeight(double height)
Splits the cell by height.
splitByHeight
in interface ICell
height
- Height of a row.public final void splitByWidth(double width)
Splits the cell by width.
splitByWidth
in interface ICell
width
- Width of a column.public final IBaseSlide getSlide()
Returns the parent slide of a cell.
Read-only IBaseSlide
.
getSlide
in interface ISlideComponent
public final IPresentation getPresentation()
Returns the parent presentation of a cell.
Read-only IPresentation
.
getPresentation
in interface IPresentationComponent
public final com.aspose.slides.IDOMObject getParent_Immediate()
Returns Parent_Immediate object.
Read-only IDOMObject
.