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

ConstructorDescription
Cell(Rectangle rect)Initializes a new instance of the Cell class.
Cell()Initializes a new instance of the Cell class.

Methods

MethodDescription
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:

ParameterTypeDescription
rectRectangleThe 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:

ParameterTypeDescription
valuebooleanboolean value

getMargin()

public MarginInfo getMargin()

Gets the padding.

Returns: MarginInfo - MarginInfo object

setMargin(MarginInfo value)

public void setMargin(MarginInfo value)

Sets the padding.

Parameters:

ParameterTypeDescription
valueMarginInfoMarginInfo object

getBorder()

public BorderInfo getBorder()

Gets the border.

Returns: BorderInfo - BorderInfo object

setBorder(BorderInfo value)

public void setBorder(BorderInfo value)

Sets the border.

Parameters:

ParameterTypeDescription
valueBorderInfoBorderInfo 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:

ParameterTypeDescription
valueColorColor 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:

ParameterTypeDescription
valuejava.lang.StringColor 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:

ParameterTypeDescription
valueImageImage instance

setAlignment(HorizontalAlignment value)

public void setAlignment(HorizontalAlignment value)

Sets the alignment.

Parameters:

ParameterTypeDescription
valueHorizontalAlignmentHorizontalAlignment 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:

ParameterTypeDescription
valueTextStateTextState 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:

ParameterTypeDescription
valuebooleanboolean 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:

ParameterTypeDescription
valueParagraphsParagraphs 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:

ParameterTypeDescription
valuebooleanboolean 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:

ParameterTypeDescription
valueVerticalAlignmentVerticalAlignment 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:

ParameterTypeDescription
valueintint 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:

ParameterTypeDescription
valueintint 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:

ParameterTypeDescription
valuedoubledouble value

deepClone()

public Object deepClone()

Clone the cell.

Returns: java.lang.Object - The cloned object