[]
Adds a new ISpinner.
Use this method to place a spinner form control on the worksheet and then configure its linked cell and range settings through the returned ISpinner.
ISpinner AddSpinner(double left, double top, double width, double height)
Function AddSpinner(left As Double, top As Double, width As Double, height As Double) As ISpinner
| Type | Name | Description |
|---|---|---|
| double | left | The horizontal position of the spinner. |
| double | top | The vertical position of the spinner. |
| double | width | The width of the spinner. |
| double | height | The height of the spinner. |
| Type | Description |
|---|---|
| ISpinner | The newly created ISpinner. |
ISpinner spinner = worksheet.Controls.AddSpinner(20, 20, 18, 72);
spinner.LinkedCell = worksheet.Range["A1"];
spinner.Min = 0;
spinner.Max = 10;
spinner.SmallChange = 1;