alexa
Syncfusion
menu Syncfusion

ASP.NET Core - EJ2

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

    Show / Hide Table of Contents

    Class FormControl

    Inheritance
    System.Object
    Syncfusion.EJ2.EJTagHelper
    FormControl
    Namespace: Syncfusion.EJ2.Spreadsheet
    Assembly: Syncfusion.AspNetCore.Spreadsheet.dll
    Syntax
    public class FormControl : EJTagHelper

    Constructors

    FormControl()

    Declaration
    public FormControl()

    Properties

    Address

    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 object Address { get; set; }
    Property Value
    Type Description
    System.Object

    The default value is null

    CellLink

    Specifies the linked cell reference (for example, A1 or Sheet1!A1). The linked cell is updated when the form control value changes.

    Declaration
    public string CellLink { get; set; }
    Property Value
    Type Description
    System.String

    The default value is ""

    Height

    Specifies the height of the form control in pixels.

    Declaration
    public double Height { get; set; }
    Property Value
    Type Description
    System.Double

    The default value is 0

    InputRange

    Specifies the cell range that provides the items for the DropDown control. Applicable to DropDown controls.

    Declaration
    public string InputRange { get; set; }
    Property Value
    Type Description
    System.String

    The default value is ""

    Left

    Specifies the left position of the form control in pixels.

    Declaration
    public double Left { get; set; }
    Property Value
    Type Description
    System.Double

    The default value is 0

    SelectedIndex

    Specifies the zero-based index of the selected item in the DropDown control. Applicable to DropDown controls.

    Declaration
    public double SelectedIndex { get; set; }
    Property Value
    Type Description
    System.Double

    The default value is -1

    Text

    Specifies the label text displayed for the form control. Applicable to CheckBox and RadioButton controls.

    Declaration
    public string Text { get; set; }
    Property Value
    Type Description
    System.String

    The default value is ""

    Top

    Specifies the top position of the form control in pixels.

    Declaration
    public double Top { get; set; }
    Property Value
    Type Description
    System.Double

    The default value is 0

    Type

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

    Declaration
    public FormControlType Type { get; set; }
    Property Value
    Type Description
    FormControlType

    The default value is null

    Value

    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 FormControlState Value { get; set; }
    Property Value
    Type Description
    FormControlState

    The default value is FormControlState.Unchecked

    Width

    Specifies the width of the form control in pixels.

    Declaration
    public double Width { get; set; }
    Property Value
    Type Description
    System.Double

    The default value is 0

    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved