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.
|
HorizontalAlignment |
getAlignment()
Gets the alignment.
|
Color |
getBackgroundColor()
Gets the background color.
|
Image |
getBackgroundImage()
Gets or sets the background image
|
String |
getBackgroundImageFile()
Deprecated.
Property was expanded please use BackgroundImage
|
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.
|
VerticalAlignment |
getVerticalAlignment()
Gets the vertical alignment.
|
double |
getWidth()
Gets the column width.
|
boolean |
isNoBorder()
Gets the cell have border.
|
boolean |
isOverrideByFragment()
Sets the cell's TextState property is overriden by TextFragment TextState property.
|
boolean |
isWordWrapped()
Gets the cell's text word wrapped.
|
void |
setAlignment(HorizontalAlignment value)
Sets the alignment.
|
void |
setBackgroundColor(Color value)
Gets or sets the background color.
|
void |
setBackgroundImage(Image value)
Gets or sets the background image
|
void |
setBackgroundImageFile(String value)
Deprecated.
Property was expanded please use BackgroundImage
|
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 |
setOverrideByFragment(boolean value)
Sets the cell's TextState property is overriden by TextFragment TextState property.
|
void |
setParagraphs(Paragraphs value)
Sets the cell's formatted text.
|
void |
setRowSpan(int value)
Sets the row span.
|
void |
setVerticalAlignment(VerticalAlignment 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 object@Deprecated public String getBackgroundImageFile()
Gets the background image file.
@Deprecated public void setBackgroundImageFile(String value)
Sets the background image file.
value
- Color objectpublic HorizontalAlignment getAlignment()
Gets the alignment.
HorizontalAlignment
public final Image getBackgroundImage()
Gets or sets the background image
public final void setBackgroundImage(Image value)
Gets or sets the background image
value
- Image instancepublic void setAlignment(HorizontalAlignment 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 final boolean isOverrideByFragment()
Sets the cell's TextState property is overriden by TextFragment TextState property.
public final void setOverrideByFragment(boolean value)
Sets the cell's TextState property is overriden by TextFragment TextState property.
value
- boolean valuepublic 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 VerticalAlignment getVerticalAlignment()
Gets the vertical alignment.
VerticalAlignment
public void setVerticalAlignment(VerticalAlignment 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
Copyright © 2023 Aspose. All Rights Reserved.