[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Forms.IControlCollection.AddButton

AddButton Method

AddButton(double, double, double, double)

Adds a new IButton.

Creates a button control at the specified position and size in the worksheet's control collection.

Declaration
IButton AddButton(double left, double top, double width, double height)
Function AddButton(left As Double, top As Double, width As Double, height As Double) As IButton
Parameters
Type Name Description
double left

The left margin of the button.

double top

The top margin of the button.

double width

The width of the button.

double height

The height of the button.

Returns
Type Description
IButton

The newly added IButton.

Examples
IButton button = worksheet.Controls.AddButton(20, 20, 100, 24);
button.Text = "Submit";