[]
        
立即试用
(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
获取或设置单元格边距。
  • Constructor Summary

    Constructors
    Constructor
    Description
    CellPadding(int all)
    赋值单元格边距(cellPadding)的四个属性为相同的值
    CellPadding(int top, int right, int bottom, int left)
    为cellPadding的四个属性分配不同的值
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    获取底部单元格内边距。
    int
    获取左侧单元格内边距。
    int
    获取右侧单元格内边距。
    int
    获取顶部单元格内边距。

    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)
      赋值单元格边距(cellPadding)的四个属性为相同的值
      Parameters:
      all - 所有边的填充值。
    • CellPadding

      public CellPadding(int top, int right, int bottom, int left)
      为cellPadding的四个属性分配不同的值
      Parameters:
      top - 顶部边距的整数值。
      right - 右侧边距的整数值。
      bottom - 底部边距的整数值。
      left - 左侧边距的整数值。
  • Method Details

    • getLeft

      public int getLeft()
      获取左侧单元格内边距。
      Specified by:
      getLeft in interface ICellPadding
    • getRight

      public int getRight()
      获取右侧单元格内边距。
      Specified by:
      getRight in interface ICellPadding
    • getTop

      public int getTop()
      获取顶部单元格内边距。
      Specified by:
      getTop in interface ICellPadding
    • getBottom

      public int getBottom()
      获取底部单元格内边距。
      Specified by:
      getBottom in interface ICellPadding