[]
        
(Showing Draft Content)

CellPadding

Class CellPadding

java.lang.Object
com.grapecity.documents.excel.CellPadding
All Implemented Interfaces:
ICellPadding

public class CellPadding extends Object implements ICellPadding
Gets or sets the cell padding.
  • Constructor Summary

    Constructors
    Constructor
    Description
    CellPadding(int all)
    Assign the four properties of cellPadding with the same value
    CellPadding(int top, int right, int bottom, int left)
    Assign different values to the four properties of cellPadding
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    get bottom cell padding.
    int
    get left cell padding.
    int
    get right cell padding.
    int
    get top cell padding.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CellPadding

      public CellPadding(int all)
      Assign the four properties of cellPadding with the same value
      Parameters:
      all - The padding value for all sides.
    • CellPadding

      public CellPadding(int top, int right, int bottom, int left)
      Assign different values to the four properties of cellPadding
      Parameters:
      top - The integer value representing the top padding.
      right - The integer value representing the right padding.
      bottom - The integer value representing the bottom padding.
      left - The integer value representing the left padding.
  • Method Details

    • getLeft

      public int getLeft()
      get left cell padding.
      Specified by:
      getLeft in interface ICellPadding
      Returns:
      The left padding of the cell.
    • getRight

      public int getRight()
      get right cell padding.
      Specified by:
      getRight in interface ICellPadding
      Returns:
      The right padding of the cell.
    • getTop

      public int getTop()
      get top cell padding.
      Specified by:
      getTop in interface ICellPadding
      Returns:
      The top padding of the cell.
    • getBottom

      public int getBottom()
      get bottom cell padding.
      Specified by:
      getBottom in interface ICellPadding
      Returns:
      The bottom padding of the cell.