public abstract class TableCellElement extends TableChildElement implements ITextElement, IAdjustPosition
Represents a base class for table cell elements (TH and TD) in logical structure.
| Modifier and Type | Method and Description |
|---|---|
void |
adjustPosition(PositionSettings positionSettings)
Adjust position.
|
HorizontalAlignment |
getAlignment()
Gets or sets the cell alignment.
|
Color |
getBackgroundColor()
Gets or sets the cell background color.
|
BorderInfo |
getBorder()
Gets or sets the cell border.
|
Cell |
getCell() |
int |
getColSpan()
Gets or sets the column span.
|
TextState |
getDefaultCellTextState()
Gets or sets the default cell text state.
|
MarginInfo |
getMargin()
Gets or sets the padding.
|
int |
getRowSpan()
Gets or sets the row span.
|
StructureTextState |
getStructureTextState()
Gets
/Aspose.Pdf.LogicalStructure.StructureTextState object for current element. |
VerticalAlignment |
getVerticalAlignment()
Gets or sets the vertical alignment.
|
boolean |
isNoBorder()
Gets or sets the cell have border.
|
boolean |
isWordWrapped()
Gets or sets the cell's text word wrapped.
|
void |
preSave() |
void |
setAlignment(HorizontalAlignment value)
Gets or sets the cell alignment.
|
void |
setBackgroundColor(Color value)
Gets or sets the cell background color.
|
void |
setBorder(BorderInfo value)
Gets or sets the cell border.
|
void |
setColSpan(int value)
Gets or sets the column span.
|
void |
setDefaultCellTextState(TextState value)
Gets or sets the default cell text state.
|
void |
setMargin(MarginInfo value)
Gets or sets the padding.
|
void |
setNoBorder(boolean value)
Gets or sets the cell have border.
|
void |
setRowSpan(int value)
Gets or sets the row span.
|
void |
setText(String text)
Appends text content to current text element.
|
void |
setVerticalAlignment(VerticalAlignment value)
Gets or sets the vertical alignment.
|
void |
setWordWrapped(boolean value)
Gets or sets the cell's text word wrapped.
|
changeParentElement, changeParentElement, clearId, generateId, getActualText, getAlternativeText, getAttributes, getDefaultAttributeOwner, getExpansionText, getID, getLanguage, getPage, getS, getStructureType, getTitle, remove, removeAndMoveItsChildObjectsToItsParent, removeAndMoveItsChildObjectsToItsParent, setActualText, setAlternativeText, setExpansionText, setId, setLanguage, setParentElement, setTag, setTitle, tag, tag, tag, tag, tag, toStringappendChild, appendChild, clearChilds, findElements, findElements, getChildElements, getElementEngine, getParentElement, getTaggedContent, getTrailer, insertChild, insertChild, removeChildpublic final Cell getCell()
public final Color getBackgroundColor()
Gets or sets the cell background color.
public final void setBackgroundColor(Color value)
Gets or sets the cell background color.
value - Color instancepublic final BorderInfo getBorder()
Gets or sets the cell border.
public final void setBorder(BorderInfo value)
Gets or sets the cell border.
value - BorderInfo instancepublic final boolean isNoBorder()
Gets or sets the cell have border.
public final void setNoBorder(boolean value)
Gets or sets the cell have border.
value - boolean valuepublic final MarginInfo getMargin()
Gets or sets the padding.
public final void setMargin(MarginInfo value)
Gets or sets the padding.
value - MarginInfo instancepublic final HorizontalAlignment getAlignment()
Gets or sets the cell alignment.
public final void setAlignment(HorizontalAlignment value)
Gets or sets the cell alignment.
value - HorizontalAlignment elementpublic final TextState getDefaultCellTextState()
Gets or sets the default cell text state.
public final void setDefaultCellTextState(TextState value)
Gets or sets the default cell text state.
value - TextState instancepublic final boolean isWordWrapped()
Gets or sets the cell's text word wrapped.
public final void setWordWrapped(boolean value)
Gets or sets the cell's text word wrapped.
value - boolean valuepublic final VerticalAlignment getVerticalAlignment()
Gets or sets the vertical alignment.
public final void setVerticalAlignment(VerticalAlignment value)
Gets or sets the vertical alignment.
value - VerticalAlignment elementpublic final int getColSpan()
Gets or sets the column span.
public final void setColSpan(int value)
Gets or sets the column span.
value - int valuepublic final int getRowSpan()
Gets or sets the row span.
public final void setRowSpan(int value)
Gets or sets the row span.
value - int valuepublic final StructureTextState getStructureTextState()
Gets /Aspose.Pdf.LogicalStructure.StructureTextState object for current element.
/Aspose.Pdf.LogicalStructure.StructureTextState object for current element.getStructureTextState in interface ITextElementpublic final void setText(String text)
Appends text content to current text element.
setText in interface ITextElementtext - Text contentpublic final void adjustPosition(PositionSettings positionSettings)
IAdjustPositionAdjust position.
adjustPosition in interface IAdjustPositionpositionSettings - Position settingsCopyright © 2025 Aspose. All Rights Reserved.