[]
Specifies the type of a form control.
Use this enum with FormControlType to identify the concrete kind of control represented by an IControl, such as a button, check box, drop-down list, group box, label, list box, option button, scroll bar, or spinner.
public enum FormControlType
Public Enum FormControlType
IButton button = worksheet.Controls.AddButton(20, 20, 120, 24);
FormControlType controlType = button.FormControlType;
if (controlType == FormControlType.Button) {
button.Text = "Submit";
}
| Name | Description |
|---|---|
| Button | The type of this control is IButton. |
| CheckBox | The type of this control is ICheckBox. |
| DropDown | The type of this control is IDropDown. |
| GroupBox | The type of this control is IGroupBox. |
| Label | The type of this control is ILabel. |
| ListBox | The type of this control is IListBox. |
| OptionButton | The type of this control is IOptionButton. |
| ScrollBar | The type of this control is IScrollBar. |
| Spinner | The type of this control is ISpinner. |