AddFormControl provides the method to add form control object in a worksheet by given worksheet name and form control options. Supported form control type: button, check box, group box, label, option button, scroll bar and spinner. If set macro for the form control, the workbook extension should be
(sheet string, opts FormControl)
| 469 | // Horizontally: true, |
| 470 | // }) |
| 471 | func (f *File) AddFormControl(sheet string, opts FormControl) error { |
| 472 | return f.addVMLObject(vmlOptions{ |
| 473 | formCtrl: true, sheet: sheet, FormControl: opts, |
| 474 | }) |
| 475 | } |
| 476 | |
| 477 | // DeleteFormControl provides the method to delete form control in a worksheet |
| 478 | // by given worksheet name and cell reference. For example, delete the form |