[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Forms.FormControlType

FormControlType Enum

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.

Namespace: GrapeCity.Documents.Excel.Forms
Assembly: DS.Documents.Excel.dll
Syntax
public enum FormControlType
Public Enum FormControlType
Examples
IButton button = worksheet.Controls.AddButton(20, 20, 120, 24);
FormControlType controlType = button.FormControlType;
if (controlType == FormControlType.Button) {
    button.Text = "Submit";
}

Fields

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.