alexa
Syncfusion
menu Syncfusion

ASP.NET Core - EJ2

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download

    Show / Hide Table of Contents

    Class FormControlBuilder

    Inheritance
    System.Object
    Syncfusion.EJ2.ControlBuilder
    FormControlBuilder
    Namespace: Syncfusion.EJ2.Spreadsheet
    Assembly: Syncfusion.AspNetCore.Spreadsheet.dll
    Syntax
    public class FormControlBuilder : ControlBuilder

    Constructors

    FormControlBuilder()

    Declaration
    public FormControlBuilder()

    FormControlBuilder(List<FormControl>)

    Declaration
    public FormControlBuilder(List<FormControl> collection)
    Parameters
    Type Name Description
    System.Collections.Generic.List<FormControl> collection

    Methods

    Add()

    Declaration
    public void Add()

    Address(Double[])

    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
    Type
    FormControlBuilder

    Address(Object)

    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
    Type
    FormControlBuilder

    Address(String)

    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
    Type
    FormControlBuilder

    CellLink(String)

    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
    Type
    FormControlBuilder

    Height(Double)

    Specifies the height of the form control in pixels.

    Declaration
    public FormControlBuilder Height(double height)
    Parameters
    Type Name Description
    System.Double height
    Returns
    Type
    FormControlBuilder

    InputRange(String)

    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
    Type
    FormControlBuilder

    Left(Double)

    Specifies the left position of the form control in pixels.

    Declaration
    public FormControlBuilder Left(double left)
    Parameters
    Type Name Description
    System.Double left
    Returns
    Type
    FormControlBuilder

    SelectedIndex(Double)

    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
    Type
    FormControlBuilder

    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
    Type
    FormControlBuilder

    Top(Double)

    Specifies the top position of the form control in pixels.

    Declaration
    public FormControlBuilder Top(double top)
    Parameters
    Type Name Description
    System.Double top
    Returns
    Type
    FormControlBuilder

    Type(FormControlType)

    Specifies the type of the form control. The supported values are CheckBox, RadioButton, and DropDown.

    Declaration
    public FormControlBuilder Type(FormControlType type)
    Parameters
    Type Name Description
    FormControlType type
    Returns
    Type
    FormControlBuilder

    Value(FormControlState)

    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
    Type Name Description
    FormControlState value
    Returns
    Type
    FormControlBuilder

    Width(Double)

    Specifies the width of the form control in pixels.

    Declaration
    public FormControlBuilder Width(double width)
    Parameters
    Type Name Description
    System.Double width
    Returns
    Type
    FormControlBuilder
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved