MCPcopy
hub / github.com/qax-os/excelize / AddFormControl

Method AddFormControl

vml.go:471–475  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

469// Horizontally: true,
470// })
471func (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

Callers 1

TestFormControlFunction · 0.95

Calls 1

addVMLObjectMethod · 0.95

Tested by 1

TestFormControlFunction · 0.76