ComboBox Class
Represents a Combo Box Form Control.
- Inheritance:
- System.ObjectComboBox
Properties
CellLink
Gets or sets the cell which holds the value of this combo box.
Property Value
The cell which holds the value of this combo box.
DropDownLines
Gets or sets the value that specifies the maximum number of lines in the dropdown before scrollbars are added.
Property Value
- System.Int32
The value that specifies the maximum number of lines in the dropdown before scrollbars are added.
FormControlType
Gets the ComboBox value.
public override FormControlType FormControlType { get; }
Public Overrides ReadOnly Property FormControlType As FormControlType
Property Value
The ComboBox value.
Overrides
InputRange
Gets or sets a CellRange which is used as the input range for this combo box.
Property Value
The CellRange which is used as the input range for this combo box.
SelectedIndex
Gets or sets the index of the selected item in the combo box.
Property Value
- System.Int32
The index of the selected item in the combo box.
Remarks
Similarly to MS Excel, the index is 1-based. The property returns -1 if no item is selected.
SelectedValue
Gets the selected value in the combo box.
Property Value
- System.Object
Selected value in the combo box.
Remarks
The property returns null if no item is selected.
Inherited Properties
Hyperlink | Gets or sets the hyperlink on this drawing (picture, chart, etc.). (Inherited from ExcelDrawing) |
MacroName | Gets the name of the assigned vba macro to this button. (Inherited from ExcelFormControl) |
Metadata | Gets the metadata (non-visual properties) of this ExcelDrawing instance. (Inherited from ExcelDrawing) |
Position | Gets the position of this drawing (picture, chart, etc.) in the worksheet. (Inherited from ExcelDrawing) |
Gets or sets whether current form control is printable. (Inherited from ExcelFormControl) | |
ThreeDShading | Gets or sets whether 3D effect should be enabled on the current form control. (Inherited from ExcelFormControl) |
Worksheet | Gets the parent worksheet. (Inherited from ExcelDrawing) |
ZIndex | Gets the z-order position of the picture. -1 if the picture is not contained in proper collection. (Inherited from ExcelDrawing) |
Inherited Methods
BringForward() | Moves the form control one position forward in the drawings. (Inherited from ExcelFormControl) |
BringToFront() | Brings the form control to the front of the drawings. (Inherited from ExcelFormControl) |
Format() | Formats this drawing (picture, chart, etc.) to its default size so it can be exported to PDF, XPS, image or be printed. (Inherited from ExcelDrawing) |
Format(System.Double, System.Double, LengthUnit) | Formats this drawing (picture, chart, etc.) to specified size so it can be exported to PDF, XPS, image or be printed. (Inherited from ExcelDrawing) |
MoveZIndex(System.Int32) | Moves the form control forward or backward in the drawings with the given relative index. (Inherited from ExcelFormControl) |
SendBackward() | Moves the form control one position backward in the drawings. (Inherited from ExcelFormControl) |
SendToBack() | Sends the form control to the back of the drawings. (Inherited from ExcelFormControl) |
SetMacro(VbaModule, System.String) | Assigns the given macro to this button. (Inherited from ExcelFormControl) |