com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class Cell

  • All Implemented Interfaces:
    com.aspose.ms.System.ICloneable


    public final class Cell
    extends Object
    implements com.aspose.ms.System.ICloneable

    Represents a cell of the table's row.

    • Constructor Detail

      • Cell

        public Cell(Rectangle rect)

        Initializes a new instance of the Cell class.

        Parameters:
        rect - The rectangle of the cell in page's coordinates.
      • Cell

        public Cell()

        Initializes a new instance of the Cell class.

    • Method Detail

      • isNoBorder

        public boolean isNoBorder()

        Gets the cell have border.

        Returns:
        boolean value
      • setNoBorder

        public void setNoBorder(boolean value)

        Sets the cell have border.

        Parameters:
        value - boolean value
      • getMargin

        public MarginInfo getMargin()

        Gets the padding.

        Returns:
        MarginInfo object
      • setMargin

        public void setMargin(MarginInfo value)

        Sets the padding.

        Parameters:
        value - MarginInfo object
      • getBorder

        public BorderInfo getBorder()

        Gets the border.

        Returns:
        BorderInfo object
      • setBorder

        public void setBorder(BorderInfo value)

        Sets the border.

        Parameters:
        value - BorderInfo object
      • getBackgroundColor

        public Color getBackgroundColor()

        Gets the background color.

        Returns:
        Color object
      • setBackgroundColor

        public void setBackgroundColor(Color value)

        Gets or sets the background color.

        Parameters:
        value - Color object
      • getBackgroundImageFile

        public String getBackgroundImageFile()

        Gets the background image file.

        Returns:
        String value
      • setBackgroundImageFile

        public void setBackgroundImageFile(String value)

        Sets the background image file.

        Parameters:
        value - Color object
      • getAlignment

        public int getAlignment()

        Gets the alignment.

        Returns:
        HorizontalAlignment element
        See Also:
        HorizontalAlignment
      • setAlignment

        public void setAlignment(int value)

        Sets the alignment.

        Parameters:
        value - HorizontalAlignment element
        See Also:
        HorizontalAlignment
      • getDefaultCellTextState

        public TextState getDefaultCellTextState()

        Gets the default cell text state.

        Returns:
        TextState object
      • setDefaultCellTextState

        public void setDefaultCellTextState(TextState value)

        Sets the default cell text state.

        Parameters:
        value - TextState object
      • getParagraphs

        public Paragraphs getParagraphs()

        Gets the cell's formatted text.

        Returns:
        Paragraphs object
      • setParagraphs

        public void setParagraphs(Paragraphs value)

        Sets the cell's formatted text.

        Parameters:
        value - Paragraphs object
      • isWordWrapped

        public boolean isWordWrapped()

        Gets the cell's text word wrapped.

        Returns:
        boolean value
      • setWordWrapped

        public void setWordWrapped(boolean value)

        Sets the cell's text word wrapped.

        Parameters:
        value - boolean value
      • getVerticalAlignment

        public int getVerticalAlignment()

        Gets the vertical alignment.

        Returns:
        VerticalAlignment element
        See Also:
        VerticalAlignment
      • setVerticalAlignment

        public void setVerticalAlignment(int value)

        Sets the vertical alignment.

        Parameters:
        value - VerticalAlignment element
        See Also:
        VerticalAlignment
      • getColSpan

        public int getColSpan()

        Gets or sets the column span.

        Returns:
        int value
      • setColSpan

        public void setColSpan(int value)

        Sets the column span.

        Parameters:
        value - int value
      • getRowSpan

        public int getRowSpan()

        Gets the row span.

        Returns:
        int value
      • setRowSpan

        public void setRowSpan(int value)

        Sets the row span.

        Parameters:
        value - int value
      • getWidth

        public double getWidth()

        Gets the column width.

        Returns:
        double value
      • setWidth

        public void setWidth(double value)

        Sets the column width.

        Parameters:
        value - double value
      • deepClone

        public Object deepClone()

        Clone the cell.

        Specified by:
        deepClone in interface com.aspose.ms.System.ICloneable
        Returns:
        The cloned object