Package com.grapecity.documents.excel
Class ButtonCellType
java.lang.Object
com.grapecity.documents.excel.BaseCellType
com.grapecity.documents.excel.ButtonCellType
代表一个按钮单元格。
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription获取按钮的背景颜色。double获取按钮相对于单元格的底部边距(以像素为单位)。double获取按钮相对于单元格左侧的边距(以像素为单位)。double获取按钮相对于单元格右侧的边距(以像素为单位)。double获取按钮相对于单元格顶部边缘的像素值。getText()获取按钮的内容。voidsetButtonBackColor(String value) 设置按钮的背景颜色。voidsetMarginBottom(double value) 设置按钮相对于单元格的底部边距(以像素为单位)。voidsetMarginLeft(double value) 设置按钮相对于单元格的左侧边距(以像素为单位)。voidsetMarginRight(double value) 设置按钮相对于单元格的右侧边距(以像素为单位)。voidsetMarginTop(double value) 设置按钮相对于单元格顶部边距的像素值。void设置按钮的内容。
-
Constructor Details
-
ButtonCellType
public ButtonCellType()创建一个按钮单元格类型。
-
-
Method Details
-
getText
获取按钮的内容。 -
setText
设置按钮的内容。 -
getButtonBackColor
获取按钮的背景颜色。 -
setButtonBackColor
设置按钮的背景颜色。 -
getMarginLeft
public double getMarginLeft()获取按钮相对于单元格左侧的边距(以像素为单位)。 -
setMarginLeft
public void setMarginLeft(double value) 设置按钮相对于单元格的左侧边距(以像素为单位)。 -
getMarginRight
public double getMarginRight()获取按钮相对于单元格右侧的边距(以像素为单位)。 -
setMarginRight
public void setMarginRight(double value) 设置按钮相对于单元格的右侧边距(以像素为单位)。 -
getMarginTop
public double getMarginTop()获取按钮相对于单元格顶部边缘的像素值。 -
setMarginTop
public void setMarginTop(double value) 设置按钮相对于单元格顶部边距的像素值。 -
getMarginBottom
public double getMarginBottom()获取按钮相对于单元格的底部边距(以像素为单位)。 -
setMarginBottom
public void setMarginBottom(double value) 设置按钮相对于单元格的底部边距(以像素为单位)。
-