Cell
Inheritance: java.lang.Object
All Implemented Interfaces: com.aspose.ms.System.ICloneable
public final class Cell implements System.ICloneable
Represents a cell of the table’s row.
Constructors
Constructor | Description |
---|---|
Cell(Rectangle rect) | Initializes a new instance of the Cell class. |
Cell() | Initializes a new instance of the Cell class. |
Methods
Method | Description |
---|---|
isNoBorder() | Gets the cell have border. |
setNoBorder(boolean value) | Sets the cell have border. |
getMargin() | Gets the padding. |
setMargin(MarginInfo value) | Sets the padding. |
getBorder() | Gets the border. |
setBorder(BorderInfo value) | Sets the border. |
getBackgroundColor() | Gets the background color. |
setBackgroundColor(Color value) | Gets or sets the background color. |
getBackgroundImageFile() | Gets the background image file. |
setBackgroundImageFile(String value) | Sets the background image file. |
getAlignment() | Gets the alignment. |
getBackgroundImage() | Gets or sets the background image |
setBackgroundImage(Image value) | Gets or sets the background image |
setAlignment(HorizontalAlignment value) | Sets the alignment. |
getDefaultCellTextState() | Gets the default cell text state. |
setDefaultCellTextState(TextState value) | Sets the default cell text state. |
isOverrideByFragment() | Sets the cell’s TextState property is overriden by TextFragment TextState property. |
setOverrideByFragment(boolean value) | Sets the cell’s TextState property is overriden by TextFragment TextState property. |
getParagraphs() | Gets the cell’s formatted text. |
setParagraphs(Paragraphs value) | Sets the cell’s formatted text. |
isWordWrapped() | Gets the cell’s text word wrapped. |
setWordWrapped(boolean value) | Sets the cell’s text word wrapped. |
getVerticalAlignment() | Gets the vertical alignment. |
setVerticalAlignment(VerticalAlignment value) | Sets the vertical alignment. |
getColSpan() | Gets or sets the column span. |
setColSpan(int value) | Sets the column span. |
getRowSpan() | Gets the row span. |
setRowSpan(int value) | Sets the row span. |
getWidth() | Gets the column width. |
setWidth(double value) | Sets the column width. |
deepClone() | Clone the cell. |
Cell(Rectangle rect)
public Cell(Rectangle rect)
Initializes a new instance of the Cell class.
Parameters:
Parameter | Type | Description |
---|---|---|
rect | Rectangle | The rectangle of the cell in page’s coordinates. |
Cell()
public Cell()
Initializes a new instance of the Cell class.
isNoBorder()
public boolean isNoBorder()
Gets the cell have border.
Returns: boolean - boolean value
setNoBorder(boolean value)
public void setNoBorder(boolean value)
Sets the cell have border.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean | boolean value |
getMargin()
public MarginInfo getMargin()
Gets the padding.
Returns: MarginInfo - MarginInfo object
setMargin(MarginInfo value)
public void setMargin(MarginInfo value)
Sets the padding.
Parameters:
Parameter | Type | Description |
---|---|---|
value | MarginInfo | MarginInfo object |
getBorder()
public BorderInfo getBorder()
Gets the border.
Returns: BorderInfo - BorderInfo object
setBorder(BorderInfo value)
public void setBorder(BorderInfo value)
Sets the border.
Parameters:
Parameter | Type | Description |
---|---|---|
value | BorderInfo | BorderInfo object |
getBackgroundColor()
public Color getBackgroundColor()
Gets the background color.
Returns: Color - Color object
setBackgroundColor(Color value)
public void setBackgroundColor(Color value)
Gets or sets the background color.
Parameters:
Parameter | Type | Description |
---|---|---|
value | Color | Color object |
getBackgroundImageFile()
public String getBackgroundImageFile()
Gets the background image file.
Returns: java.lang.String - String value
setBackgroundImageFile(String value)
public void setBackgroundImageFile(String value)
Sets the background image file.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String | Color object |
getAlignment()
public HorizontalAlignment getAlignment()
Gets the alignment.
Returns: HorizontalAlignment - HorizontalAlignment element
getBackgroundImage()
public final Image getBackgroundImage()
Gets or sets the background image
Returns: Image - Image instance
setBackgroundImage(Image value)
public final void setBackgroundImage(Image value)
Gets or sets the background image
Parameters:
Parameter | Type | Description |
---|---|---|
value | Image | Image instance |
setAlignment(HorizontalAlignment value)
public void setAlignment(HorizontalAlignment value)
Sets the alignment.
Parameters:
Parameter | Type | Description |
---|---|---|
value | HorizontalAlignment | HorizontalAlignment element |
getDefaultCellTextState()
public TextState getDefaultCellTextState()
Gets the default cell text state.
Returns: TextState - TextState object
setDefaultCellTextState(TextState value)
public void setDefaultCellTextState(TextState value)
Sets the default cell text state.
Parameters:
Parameter | Type | Description |
---|---|---|
value | TextState | TextState object |
isOverrideByFragment()
public final boolean isOverrideByFragment()
Sets the cell’s TextState property is overriden by TextFragment TextState property.
Returns: boolean - boolean value
setOverrideByFragment(boolean value)
public final void setOverrideByFragment(boolean value)
Sets the cell’s TextState property is overriden by TextFragment TextState property.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean | boolean value |
getParagraphs()
public Paragraphs getParagraphs()
Gets the cell’s formatted text.
Returns: Paragraphs - Paragraphs object
setParagraphs(Paragraphs value)
public void setParagraphs(Paragraphs value)
Sets the cell’s formatted text.
Parameters:
Parameter | Type | Description |
---|---|---|
value | Paragraphs | Paragraphs object |
isWordWrapped()
public boolean isWordWrapped()
Gets the cell’s text word wrapped.
Returns: boolean - boolean value
setWordWrapped(boolean value)
public void setWordWrapped(boolean value)
Sets the cell’s text word wrapped.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean | boolean value |
getVerticalAlignment()
public VerticalAlignment getVerticalAlignment()
Gets the vertical alignment.
Returns: VerticalAlignment - VerticalAlignment element
setVerticalAlignment(VerticalAlignment value)
public void setVerticalAlignment(VerticalAlignment value)
Sets the vertical alignment.
Parameters:
Parameter | Type | Description |
---|---|---|
value | VerticalAlignment | VerticalAlignment element |
getColSpan()
public int getColSpan()
Gets or sets the column span.
Returns: int - int value
setColSpan(int value)
public void setColSpan(int value)
Sets the column span.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int | int value |
getRowSpan()
public int getRowSpan()
Gets the row span.
Returns: int - int value
setRowSpan(int value)
public void setRowSpan(int value)
Sets the row span.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int | int value |
getWidth()
public double getWidth()
Gets the column width.
Returns: double - double value
setWidth(double value)
public void setWidth(double value)
Sets the column width.
Parameters:
Parameter | Type | Description |
---|---|---|
value | double | double value |
deepClone()
public Object deepClone()
Clone the cell.
Returns: java.lang.Object - The cloned object