public final class Cell extends Object implements com.aspose.ms.System.ICloneable
Represents a cell of the table's row.
Constructor and Description |
---|
Cell()
Initializes a new instance of the Cell class.
|
Cell(Rectangle rect)
Initializes a new instance of the Cell class.
|
Modifier and Type | Method and Description |
---|---|
Object |
deepClone()
Clone the cell.
|
int |
getAlignment()
Gets the alignment.
|
Color |
getBackgroundColor()
Gets the background color.
|
String |
getBackgroundImageFile()
Gets the background image file.
|
BorderInfo |
getBorder()
Gets the border.
|
int |
getColSpan()
Gets or sets the column span.
|
TextState |
getDefaultCellTextState()
Gets the default cell text state.
|
MarginInfo |
getMargin()
Gets the padding.
|
Paragraphs |
getParagraphs()
Gets the cell's formatted text.
|
int |
getRowSpan()
Gets the row span.
|
int |
getVerticalAlignment()
Gets the vertical alignment.
|
double |
getWidth()
Gets the column width.
|
boolean |
isNoBorder()
Gets the cell have border.
|
boolean |
isWordWrapped()
Gets the cell's text word wrapped.
|
void |
setAlignment(int value)
Sets the alignment.
|
void |
setBackgroundColor(Color value)
Gets or sets the background color.
|
void |
setBackgroundImageFile(String value)
Sets the background image file.
|
void |
setBorder(BorderInfo value)
Sets the border.
|
void |
setColSpan(int value)
Sets the column span.
|
void |
setDefaultCellTextState(TextState value)
Sets the default cell text state.
|
void |
setMargin(MarginInfo value)
Sets the padding.
|
void |
setNoBorder(boolean value)
Sets the cell have border.
|
void |
setParagraphs(Paragraphs value)
Sets the cell's formatted text.
|
void |
setRowSpan(int value)
Sets the row span.
|
void |
setVerticalAlignment(int value)
Sets the vertical alignment.
|
void |
setWidth(double value)
Sets the column width.
|
void |
setWordWrapped(boolean value)
Sets the cell's text word wrapped.
|
public Cell(Rectangle rect)
Initializes a new instance of the Cell class.
rect
- The rectangle of the cell in page's coordinates.public Cell()
Initializes a new instance of the Cell class.
public boolean isNoBorder()
Gets the cell have border.
public void setNoBorder(boolean value)
Sets the cell have border.
value
- boolean valuepublic MarginInfo getMargin()
Gets the padding.
public void setMargin(MarginInfo value)
Sets the padding.
value
- MarginInfo objectpublic BorderInfo getBorder()
Gets the border.
public void setBorder(BorderInfo value)
Sets the border.
value
- BorderInfo objectpublic Color getBackgroundColor()
Gets the background color.
public void setBackgroundColor(Color value)
Gets or sets the background color.
value
- Color objectpublic String getBackgroundImageFile()
Gets the background image file.
public void setBackgroundImageFile(String value)
Sets the background image file.
value
- Color objectpublic int getAlignment()
Gets the alignment.
HorizontalAlignment
public void setAlignment(int value)
Sets the alignment.
value
- HorizontalAlignment elementHorizontalAlignment
public TextState getDefaultCellTextState()
Gets the default cell text state.
public void setDefaultCellTextState(TextState value)
Sets the default cell text state.
value
- TextState objectpublic Paragraphs getParagraphs()
Gets the cell's formatted text.
public void setParagraphs(Paragraphs value)
Sets the cell's formatted text.
value
- Paragraphs objectpublic boolean isWordWrapped()
Gets the cell's text word wrapped.
public void setWordWrapped(boolean value)
Sets the cell's text word wrapped.
value
- boolean valuepublic int getVerticalAlignment()
Gets the vertical alignment.
VerticalAlignment
public void setVerticalAlignment(int value)
Sets the vertical alignment.
value
- VerticalAlignment elementVerticalAlignment
public int getColSpan()
Gets or sets the column span.
public void setColSpan(int value)
Sets the column span.
value
- int valuepublic int getRowSpan()
Gets the row span.
public void setRowSpan(int value)
Sets the row span.
value
- int valuepublic double getWidth()
Gets the column width.
public void setWidth(double value)
Sets the column width.
value
- double valuepublic Object deepClone()
Clone the cell.
deepClone
in interface com.aspose.ms.System.ICloneable