Cell
Overview
Cell is a class in Aspose.Pdf FOSS for Java.
Represents a single cell within a {@link Row} of a {@link Table}.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
paragraphs | Paragraphs | Read | Returns the paragraphs collection for this cell, creating it lazily if needed. |
colSpan | int | Read | Returns the number of columns this cell spans. |
rowSpan | int | Read | Returns the number of rows this cell spans. |
border | BorderInfo | Read | Returns the border styling for this cell. |
backgroundColor | Color | Read | Returns the background color of this cell. |
margin | MarginInfo | Read | Returns the cell padding (margin) information. |
width | double | Read | Returns the explicit width of this cell in points. |
alignment | HorizontalAlignment | Read | Returns the horizontal alignment for content within this cell. |
defaultCellTextStateVerticalAlignment | VerticalAlignment | Read | Returns the vertical alignment for content within this cell. |
noBorder | boolean | Read | Returns whether this cell should have no border drawn. |
wordWrapped | boolean | Read | Returns whether text content in this cell should be word-wrapped. |
Methods
| Signature | Description |
|---|---|
Cell() | Creates a new empty Cell with default settings. |
getParagraphs() → Paragraphs | Returns the paragraphs collection for this cell, creating it lazily if needed. |
setParagraphs(paragraphs: Paragraphs) | Sets the paragraphs collection for this cell. |
getColSpan() → int | Returns the number of columns this cell spans. |
setColSpan(colSpan: int) | Sets the number of columns this cell spans. |
getRowSpan() → int | Returns the number of rows this cell spans. |
setRowSpan(rowSpan: int) | Sets the number of rows this cell spans. |
getBorder() → BorderInfo | Returns the border styling for this cell. |
setBorder(border: BorderInfo) | Sets the border styling for this cell. |
getBackgroundColor() → Color | Returns the background color of this cell. |
setBackgroundColor(backgroundColor: Color) | Sets the background color of this cell. |
getMargin() → MarginInfo | Returns the cell padding (margin) information. |
setMargin(margin: MarginInfo) | Sets the cell padding (margin) information. |
getWidth() → double | Returns the explicit width of this cell in points. |
setWidth(width: double) | Sets the explicit width of this cell in points. |
getAlignment() → HorizontalAlignment | Returns the horizontal alignment for content within this cell. |
setAlignment(alignment: HorizontalAlignment) | Sets the horizontal alignment for content within this cell. |
getDefaultCellTextStateVerticalAlignment() → VerticalAlignment | Returns the vertical alignment for content within this cell. |
setDefaultCellTextStateVerticalAlignment(verticalAlignment: VerticalAlignment) | Sets the vertical alignment for content within this cell. |
isNoBorder() → boolean | Returns whether this cell should have no border drawn. |
setNoBorder(noBorder: boolean) | Sets whether this cell should have no border drawn. |
isWordWrapped() → boolean | Returns whether text content in this cell should be word-wrapped. |
setWordWrapped(wordWrapped: boolean) | Sets whether text content in this cell should be word-wrapped. |
clone() → Cell | Creates a deep copy of this cell, including its paragraphs, border, margin, |
| background color, alignment, and span settings. |