Package com.grapecity.documents.excel
Class ButtonCellType
java.lang.Object
com.grapecity.documents.excel.BaseCellType
com.grapecity.documents.excel.ButtonCellType
Represents a button cell.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the button's background color.doubleGets the button's bottom margin in pixels relative to the cell.doubleGets the button's left margin in pixels relative to the cell.doubleGets the button's right margin in pixels relative to the cell.doubleGets the button's top margin in pixels relative to the cell.getText()Gets the button's content.voidsetButtonBackColor(String value) Sets the button's background color.voidsetMarginBottom(double value) Sets the button's bottom margin in pixels relative to the cell.voidsetMarginLeft(double value) Sets the button's left margin in pixels relative to the cell.voidsetMarginRight(double value) Sets the button's right margin in pixels relative to the cell.voidsetMarginTop(double value) Sets the button's top margin in pixels relative to the cell.voidSets the button's content.
-
Constructor Details
-
ButtonCellType
public ButtonCellType()Create a button cell type.
-
-
Method Details
-
getText
Gets the button's content.- Returns:
- The text content of the button.
-
setText
Sets the button's content.- Parameters:
value- The text content of the button.
-
getButtonBackColor
Gets the button's background color.- Returns:
- The background color of the button.
-
setButtonBackColor
Sets the button's background color.- Parameters:
value- The background color of the button.
-
getMarginLeft
public double getMarginLeft()Gets the button's left margin in pixels relative to the cell.- Returns:
- The left margin of the button in pixels.
-
setMarginLeft
public void setMarginLeft(double value) Sets the button's left margin in pixels relative to the cell.- Parameters:
value- The left margin of the button in pixels.
-
getMarginRight
public double getMarginRight()Gets the button's right margin in pixels relative to the cell.- Returns:
- The right margin of the button in pixels.
-
setMarginRight
public void setMarginRight(double value) Sets the button's right margin in pixels relative to the cell.- Parameters:
value- The right margin of the button in pixels.
-
getMarginTop
public double getMarginTop()Gets the button's top margin in pixels relative to the cell.- Returns:
- The top margin of the button in pixels.
-
setMarginTop
public void setMarginTop(double value) Sets the button's top margin in pixels relative to the cell.- Parameters:
value- The top margin of the button in pixels.
-
getMarginBottom
public double getMarginBottom()Gets the button's bottom margin in pixels relative to the cell.- Returns:
- The bottom margin of the button in pixels.
-
setMarginBottom
public void setMarginBottom(double value) Sets the button's bottom margin in pixels relative to the cell.- Parameters:
value- The bottom margin of the button in pixels.
-