Class XlsxFormControl
- Namespace
- DocWright.Spreadsheet
- Assembly
- DocWright.Spreadsheet.dll
A form control on a sheet (Phase 214c), as the sheet's control list, its properties part and its drawing state it.
public sealed class XlsxFormControl
- Inheritance
-
XlsxFormControl
- Inherited Members
Properties
- Anchor
Gets where the control is, from the sheet's control list; null when it states no anchor.
- ItemsRange
Gets the range a combo box or a list box lists (as
Data!A2:A6), or null.
- Kind
Gets what the control is.
- LinkedCell
Gets the cell the control writes its value to (as
K2), or null.
- Name
Gets the control's name.
- Text
Gets the control's caption (a check box's, an option button's, a button's text); empty when it has none.
- Value
Gets the value the control states: a check box's 1 (ticked) or 0, a list's selected position (one-based, 0 for none), a scroll bar's or a spinner's value; null when it states none.
Methods
- Remove()
Takes the control off its sheet: from the sheet's control list, its properties part, its drawing and its legacy drawing (the four places Excel keeps one), the other objects of each keeping their text.