ExcelFormControl Class
Represents a form control.
public abstract class ExcelFormControl : ExcelDrawing
Public MustInherit Class ExcelFormControl
Inherits ExcelDrawing
- Inheritance:
- ExcelFormControl
- Derived
Properties
FormControlType
Gets the FormControlType of the current ExcelFormControl.
public abstract FormControlType FormControlType { get; }
Public MustOverride ReadOnly Property FormControlType As FormControlType
Property Value
The FormControlType of the current ExcelFormControl.
MacroName
Gets the name of the assigned vba macro to this button.
Property Value
- System.String
Assigned vba macro to this button.
Gets or sets whether current form control is printable.
Property Value
true if current form control is printable, false otherwise.
ThreeDShading
Gets or sets whether 3D effect should be enabled on the current form control.
Property Value
true if 3D effect should be enabled on the current form control, false otherwise.
Methods
SetMacro(VbaModule, String)
Assigns the given macro to this button.
public void SetMacro(VbaModule vbaModule, string methodName)
Public Sub SetMacro(vbaModule As VbaModule, methodName As String)
Parameters
vbaModule
- VbaModule
The module that contains the method.
methodName
- System.String
Name of the method that will be assigned to this button.
Inherited Properties
Hyperlink | Gets or sets the hyperlink on this drawing (picture, chart, etc.). (Inherited from ExcelDrawing) |
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) |
Worksheet | Gets the parent worksheet. (Inherited from ExcelDrawing) |
Inherited Methods
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) |