public abstract class TableCellElement extends TableChildElement implements ITextElement
Represents a base class for table cell elements (TH and TD) in logical structure.
Modifier and Type | Method and Description |
---|---|
int |
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. |
int |
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 |
setAlignment(int 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(int value)
Gets or sets the vertical alignment.
|
void |
setWordWrapped(boolean value)
Gets or sets the cell's text word wrapped.
|
changeParentElement, clearId, generateId, getActualText, getAlternativeText, getAttributes, getDefaultAttributeOwner, getExpansionText, getID, getLanguage, getS, getStructureType, getTitle, setActualText, setAlternativeText, setExpansionText, setId, setLanguage, setParentElement, setTag, setTitle, toString
appendChild, findElements, findElements, getChildElements, getElementEngine, getParentElement, getTaggedContent, getTrailer
public 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 int getAlignment()
Gets or sets the cell alignment.
public final void setAlignment(int 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 int getVerticalAlignment()
Gets or sets the vertical alignment.
public final void setVerticalAlignment(int 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 ITextElement
public final void setText(String text)
Appends text content to current text element.
setText
in interface ITextElement
text
- Text content