Class FormControlBuilder
Inheritance
System.Object
Syncfusion.EJ2.ControlBuilder
FormControlBuilder
Assembly: Syncfusion.AspNetCore.Spreadsheet.dll
public class FormControlBuilder : ControlBuilder
Constructors
Declaration
public FormControlBuilder()
Declaration
public FormControlBuilder(List<FormControl> collection)
Parameters
| Type |
Name |
Description |
| System.Collections.Generic.List<FormControl> |
collection |
|
Methods
Declaration
Specifies the cell address where the form control should be inserted.
The value can be provided as a cell reference string (for example, C5)
or as a zero-based row and column index array (for example, [0, 0]).
If the top and left properties are not set, those values will be calculated based on the specified cell address.
Declaration
public FormControlBuilder Address(double[] address)
Parameters
| Type |
Name |
Description |
| System.Double[] |
address |
|
Returns
Specifies the cell address where the form control should be inserted.
The value can be provided as a cell reference string (for example, C5)
or as a zero-based row and column index array (for example, [0, 0]).
If the top and left properties are not set, those values will be calculated based on the specified cell address.
Declaration
public FormControlBuilder Address(object address)
Parameters
| Type |
Name |
Description |
| System.Object |
address |
|
Returns
Specifies the cell address where the form control should be inserted.
The value can be provided as a cell reference string (for example, C5)
or as a zero-based row and column index array (for example, [0, 0]).
If the top and left properties are not set, those values will be calculated based on the specified cell address.
Declaration
public FormControlBuilder Address(string address)
Parameters
| Type |
Name |
Description |
| System.String |
address |
|
Returns
Specifies the linked cell reference (for example, A1 or Sheet1!A1).
The linked cell is updated when the form control value changes.
Declaration
public FormControlBuilder CellLink(string cellLink)
Parameters
| Type |
Name |
Description |
| System.String |
cellLink |
|
Returns
Specifies the height of the form control in pixels.
Declaration
public FormControlBuilder Height(double height)
Parameters
| Type |
Name |
Description |
| System.Double |
height |
|
Returns
Specifies the cell range that provides the items for the DropDown control. Applicable to DropDown controls.
Declaration
public FormControlBuilder InputRange(string inputRange)
Parameters
| Type |
Name |
Description |
| System.String |
inputRange |
|
Returns
Specifies the left position of the form control in pixels.
Declaration
public FormControlBuilder Left(double left)
Parameters
| Type |
Name |
Description |
| System.Double |
left |
|
Returns
Specifies the zero-based index of the selected item in the DropDown control. Applicable to DropDown controls.
Declaration
public FormControlBuilder SelectedIndex(double selectedIndex)
Parameters
| Type |
Name |
Description |
| System.Double |
selectedIndex |
|
Returns
Text(String)
Specifies the label text displayed for the form control. Applicable to CheckBox and RadioButton controls.
Declaration
public FormControlBuilder Text(string text)
Parameters
| Type |
Name |
Description |
| System.String |
text |
|
Returns
Specifies the top position of the form control in pixels.
Declaration
public FormControlBuilder Top(double top)
Parameters
| Type |
Name |
Description |
| System.Double |
top |
|
Returns
Specifies the type of the form control.
The supported values are CheckBox, RadioButton, and DropDown.
Declaration
public FormControlBuilder Type(FormControlType type)
Parameters
Returns
Specifies the state of the form control. Applicable to CheckBox and RadioButton controls.
- For CheckBox, the supported values are
Checked, Unchecked, and Mixed.
- For RadioButton, the supported values are
Checked and Unchecked.
Declaration
public FormControlBuilder Value(FormControlState value)
Parameters
Returns
Specifies the width of the form control in pixels.
Declaration
public FormControlBuilder Width(double width)
Parameters
| Type |
Name |
Description |
| System.Double |
width |
|
Returns