Cell

Overview

Cell is a class in Aspose.Slides FOSS for Java. Inherits from: ICell, ISlideComponent, IPresentationComponent.

Represents a cell of a table.

This class declares 41 methods for Cell objects in Java programs. Available methods include: Cell, asIPresentationComponent, ensureTcPr, getAsIPresentationComponent, getAsISlideComponent, getCellFormat, getColSpan, getFirstColumn, getFirstColumnIndex, getFirstRow, getFirstRowIndex, getHeight, and 27 additional methods. Public members are accessible to any Java application after installing the Aspose.Slides FOSS for Java package. Properties: anchorCenter, asIPresentationComponent, asISlideComponent, cellFormat, colSpan, firstColumn, and 22 more.

Properties

NameTypeAccessDescription
tcPrElementReadReturns the {@code <a:tcPr>} child element of the backing {@code <a:tc>} element.
offsetXdoubleReadGets the offset x.
offsetYdoubleReadGets the offset y.
firstRowIndexintReadGets the first row index.
firstColumnIndexintReadGets the first column index.
widthdoubleReadGets the width.
heightdoubleReadGets the height.
minimalHeightdoubleReadGets the minimal height.
marginLeftdoubleRead/WriteGets or sets the margin left.
marginRightdoubleRead/WriteGets or sets the margin right.
marginTopdoubleRead/WriteGets or sets the margin top.
marginBottomdoubleRead/WriteGets or sets the margin bottom.
textVerticalTypeTextVerticalTypeRead/WriteGets or sets the text vertical type.
textAnchorTypeTextAnchorTypeRead/WriteGets or sets the text anchor type.
anchorCenterbooleanRead/WriteGets or sets the anchor center.
firstRowIRowReadGets the first row.
firstColumnIColumnReadGets the first column.
colSpanintReadGets the col span.
rowSpanintReadGets the row span.
textFrameITextFrameReadGets the text frame.
tableITableReadGets the table.
mergedCellbooleanReadGets the merged cell.
cellFormatICellFormatReadGets the cell format.
slideIBaseSlideReadGets the slide.
presentationIPresentationReadGets the presentation.
tcElementElementReadReturns the underlying {@code <a:tc>} XML element.
asISlideComponentISlideComponentReadGets the as i slide component.
asIPresentationComponentIPresentationComponentReadGets the as i presentation component.

Methods

SignatureDescription
Cell()Creates an empty {@code Cell} with no backing element.
Cell(tcElement: Element, rowIndex: int, colIndex: int, saveCallback: Runnable, parentSlide: IBaseSlide, table: ITable)Creates a new Cell backed by the given {@code <a:tc>} element.
Cell(tcElement: Element, saveCallback: Runnable)Creates a new Cell backed by the given {@code <a:tc>} element.
initInternal(tcElement: Element, rowIndex: int, colIndex: int, saveCallback: Runnable, parentSlide: IBaseSlide, table: ITable) → CellInitializes this cell from the given {@code <a:tc>} element and table context.
getTcPr() → ElementReturns the {@code <a:tcPr>} child element of the backing {@code <a:tc>} element.
ensureTcPr() → ElementReturns the {@code <a:tcPr>} child element, creating it if absent.
getOffsetX() → doubleReturns the offset x.
getOffsetY() → doubleReturns the offset y.
getFirstRowIndex() → intReturns the first row index.
getFirstColumnIndex() → intReturns the first column index.
getWidth() → doubleReturns the width.
getHeight() → doubleReturns the height.
getMinimalHeight() → doubleReturns the minimal height.
getMarginLeft() → doubleReturns the margin left.
setMarginLeft(value: double)Sets the margin left value.
getMarginRight() → doubleReturns the margin right.
setMarginRight(value: double)Sets the margin right value.
getMarginTop() → doubleReturns the margin top.
setMarginTop(value: double)Sets the margin top value.
getMarginBottom() → doubleReturns the margin bottom.
setMarginBottom(value: double)Sets the margin bottom value.
getTextVerticalType() → TextVerticalTypeReturns the text vertical type.
setTextVerticalType(value: TextVerticalType)Sets the text vertical type value.
getTextAnchorType() → TextAnchorTypeReturns the text anchor type.
setTextAnchorType(value: TextAnchorType)Sets the text anchor type value.
isAnchorCenter() → booleanReturns true if anchor center is set.
setAnchorCenter(value: boolean)Sets the anchor center value.
getFirstRow() → IRowReturns the first row.
getFirstColumn() → IColumnReturns the first column.
getColSpan() → intReturns the col span.
getRowSpan() → intReturns the row span.
getTextFrame() → ITextFrameReturns the text frame.
getTable() → ITableReturns the table.
isMergedCell() → booleanReturns true if merged cell is set.
getCellFormat() → ICellFormatReturns the cell format.
getSlide() → IBaseSlideReturns the slide.
getPresentation() → IPresentationReturns the presentation.
getTcElement() → ElementReturns the underlying {@code <a:tc>} XML element.
getAsISlideComponent() → ISlideComponentReturns the as i slide component.
getAsIPresentationComponent() → IPresentationComponentReturns the as i presentation component.
asIPresentationComponent() → IPresentationComponentCalls asIPresentationComponent on this Cell instance.

See Also

 English