[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.ButtonCellType

ButtonCellType Class

Represents a button cell type.

Used to display a button in a cell. Supports customizing the button text, background color, and margins relative to the cell edges. Can be applied to a single cell, a range, a row, a column, or an entire worksheet via CellType or CellType.

Inheritance
ButtonCellType
Namespace: GrapeCity.Documents.Excel
Assembly: DS.Documents.Excel.dll
Syntax
public class ButtonCellType : BaseCellType
Public Class ButtonCellType
    Inherits BaseCellType
Examples
ButtonCellType button = new ButtonCellType();
button.Text = "Click Me";
button.ButtonBackColor = "Azure";
button.MarginLeft = 10;
button.MarginRight = 10;
worksheet.Range["A1"].CellType = button;

Constructors

Name Description
ButtonCellType()

Initializes a new instance of the ButtonCellType class.

Properties

Name Description
ButtonBackColor

Gets or sets the button's background color.

MarginBottom

Gets or sets the button's bottom margin in pixels relative to the cell.

MarginLeft

Gets or sets the button's left margin in pixels relative to the cell.

MarginRight

Gets or sets the button's right margin in pixels relative to the cell.

MarginTop

Gets or sets the button's top margin in pixels relative to the cell.

Text

Gets or sets the button's content.