Spreadsheet - FormControlModel

18 Nov 20261 minute to read

Interface for a class FormControl

Properties

address string|number[]

Specifies the cell address where the form control should be inserted.
The value can be provided as a cell reference string (for example, C5)
or as a zero-based row and column index array (for example, [0, 0]).
If the top and left properties are not set, those values will be calculated based on the specified cell address.

Specifies the linked cell reference (for example, A1 or Sheet1!A1).
The linked cell is updated when the form control value changes.

height number

Specifies the height of the form control in pixels.

inputRange string

Specifies the cell range that provides the items for the DropDown control. Applicable to DropDown controls.

left number

Specifies the left position of the form control in pixels.

selectedIndex number

Specifies the zero-based index of the selected item in the DropDown control. Applicable to DropDown controls.

text string

Specifies the label text displayed for the form control. Applicable to CheckBox and RadioButton controls.

top number

Specifies the top position of the form control in pixels.

type FormControlType

Specifies the type of the form control.
The supported values are CheckBox, RadioButton, and DropDown.

value FormControlState

Specifies the state of the form control. Applicable to CheckBox and RadioButton controls.

  • For CheckBox, the supported values are Checked, Unchecked, and Mixed.
  • For RadioButton, the supported values are Checked and Unchecked.

width number

Specifies the width of the form control in pixels.