[]
        
(Showing Draft Content)

ButtonCellType

Class ButtonCellType

java.lang.Object
com.grapecity.documents.excel.BaseCellType
com.grapecity.documents.excel.ButtonCellType

public class ButtonCellType extends BaseCellType
Represents a button cell.
  • Constructor Details

    • ButtonCellType

      public ButtonCellType()
      Create a button cell type.
  • Method Details

    • getText

      public String getText()
      Gets the button's content.
      Returns:
      The text content of the button.
    • setText

      public void setText(String value)
      Sets the button's content.
      Parameters:
      value - The text content of the button.
    • getButtonBackColor

      public String getButtonBackColor()
      Gets the button's background color.
      Returns:
      The background color of the button.
    • setButtonBackColor

      public void setButtonBackColor(String value)
      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.