TableCellElement
Inheritance: java.lang.Object, com.aspose.pdf.tagged.logicalstructure.elements.Element, com.aspose.pdf.tagged.logicalstructure.elements.StructureElement, com.aspose.pdf.tagged.logicalstructure.elements.bls.TableChildElement
All Implemented Interfaces: com.aspose.pdf.tagged.logicalstructure.elements.ITextElement
public abstract class TableCellElement extends TableChildElement implements ITextElement
Represents a base class for table cell elements (TH and TD) in logical structure.
Methods
Method | Description |
---|---|
getCell() | |
getBackgroundColor() | Gets or sets the cell background color. |
setBackgroundColor(Color value) | Gets or sets the cell background color. |
getBorder() | Gets or sets the cell border. |
setBorder(BorderInfo value) | Gets or sets the cell border. |
isNoBorder() | Gets or sets the cell have border. |
setNoBorder(boolean value) | Gets or sets the cell have border. |
getMargin() | Gets or sets the padding. |
setMargin(MarginInfo value) | Gets or sets the padding. |
getAlignment() | Gets or sets the cell alignment. |
setAlignment(HorizontalAlignment value) | Gets or sets the cell alignment. |
getDefaultCellTextState() | Gets or sets the default cell text state. |
setDefaultCellTextState(TextState value) | Gets or sets the default cell text state. |
isWordWrapped() | Gets or sets the cell’s text word wrapped. |
setWordWrapped(boolean value) | Gets or sets the cell’s text word wrapped. |
getVerticalAlignment() | Gets or sets the vertical alignment. |
setVerticalAlignment(VerticalAlignment value) | Gets or sets the vertical alignment. |
getColSpan() | Gets or sets the column span. |
setColSpan(int value) | Gets or sets the column span. |
getRowSpan() | Gets or sets the row span. |
setRowSpan(int value) | Gets or sets the row span. |
getStructureTextState() | Gets /Aspose.Pdf.LogicalStructure.StructureTextState object for current element. |
setText(String text) | Appends text content to current text element. |
getCell()
public final Cell getCell()
Returns: Cell
getBackgroundColor()
public final Color getBackgroundColor()
Gets or sets the cell background color.
Returns: Color - Color instance
setBackgroundColor(Color value)
public final void setBackgroundColor(Color value)
Gets or sets the cell background color.
Parameters:
Parameter | Type | Description |
---|---|---|
value | Color | Color instance |
getBorder()
public final BorderInfo getBorder()
Gets or sets the cell border.
Returns: BorderInfo - BorderInfo instance
setBorder(BorderInfo value)
public final void setBorder(BorderInfo value)
Gets or sets the cell border.
Parameters:
Parameter | Type | Description |
---|---|---|
value | BorderInfo | BorderInfo instance |
isNoBorder()
public final boolean isNoBorder()
Gets or sets the cell have border.
Returns: boolean - boolean value
setNoBorder(boolean value)
public final void setNoBorder(boolean value)
Gets or sets the cell have border.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean | boolean value |
getMargin()
public final MarginInfo getMargin()
Gets or sets the padding.
Returns: MarginInfo - MarginInfo instance
setMargin(MarginInfo value)
public final void setMargin(MarginInfo value)
Gets or sets the padding.
Parameters:
Parameter | Type | Description |
---|---|---|
value | MarginInfo | MarginInfo instance |
getAlignment()
public final HorizontalAlignment getAlignment()
Gets or sets the cell alignment.
Returns: HorizontalAlignment - HorizontalAlignment element
setAlignment(HorizontalAlignment value)
public final void setAlignment(HorizontalAlignment value)
Gets or sets the cell alignment.
Parameters:
Parameter | Type | Description |
---|---|---|
value | HorizontalAlignment | HorizontalAlignment element |
getDefaultCellTextState()
public final TextState getDefaultCellTextState()
Gets or sets the default cell text state.
Returns: TextState - TextState instance
setDefaultCellTextState(TextState value)
public final void setDefaultCellTextState(TextState value)
Gets or sets the default cell text state.
Parameters:
Parameter | Type | Description |
---|---|---|
value | TextState | TextState instance |
isWordWrapped()
public final boolean isWordWrapped()
Gets or sets the cell’s text word wrapped.
Returns: boolean - boolean value
setWordWrapped(boolean value)
public final void setWordWrapped(boolean value)
Gets or sets the cell’s text word wrapped.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean | boolean value |
getVerticalAlignment()
public final VerticalAlignment getVerticalAlignment()
Gets or sets the vertical alignment.
Returns: VerticalAlignment - VerticalAlignment element
setVerticalAlignment(VerticalAlignment value)
public final void setVerticalAlignment(VerticalAlignment value)
Gets or sets the vertical alignment.
Parameters:
Parameter | Type | Description |
---|---|---|
value | VerticalAlignment | VerticalAlignment element |
getColSpan()
public final int getColSpan()
Gets or sets the column span.
Returns: int - int value
setColSpan(int value)
public final void setColSpan(int value)
Gets or sets the column span.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int | int value |
getRowSpan()
public final int getRowSpan()
Gets or sets the row span.
Returns: int - int value
setRowSpan(int value)
public final void setRowSpan(int value)
Gets or sets the row span.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int | int value |
getStructureTextState()
public final StructureTextState getStructureTextState()
Gets /Aspose.Pdf.LogicalStructure.StructureTextState object for current element.
Value: /Aspose.Pdf.LogicalStructure.StructureTextState object for current element.
Returns: StructureTextState - StructureTextState instance
setText(String text)
public final void setText(String text)
Appends text content to current text element.
Parameters:
Parameter | Type | Description |
---|---|---|
text | java.lang.String | Text content |