menu

ASP.NET MVC - EJ2

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class Cell - ASP.NETMVC-EJ2 API Reference | Syncfusion

    Show / Hide Table of Contents

    Class Cell

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

    Constructors

    Cell()

    Declaration
    public Cell()

    Properties

    Chart

    Specifies the chart of the cell.

    Declaration
    public List<Chart> Chart { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.List<Chart>

    The default value is null

    ColSpan

    Specifies the column-wise cell merge count.

    Declaration
    public int ColSpan { get; set; }
    Property Value
    Type Description
    System.Int32

    The default value is 1

    Format

    Specifies the number format code to display value in specified number format.

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

    The default value is "General"

    Formula

    Defines the formula or expression of the cell.

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

    The default value is ""

    Hyperlink

    Specifies the hyperlink of the cell.

    Declaration
    public object Hyperlink { get; set; }
    Property Value
    Type Description
    System.Object

    The default value is null

    Image

    Specifies the image of the cell.

    Declaration
    public List<Image> Image { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.List<Image>

    The default value is null

    Index

    Specifies the index of the cell.

    Declaration
    public int Index { get; set; }
    Property Value
    Type Description
    System.Int32

    The default value is 0

    IsLocked

    Specifies the cell is locked or not, for allow edit range in spreadsheet protect option.

    Declaration
    public bool IsLocked { get; set; }
    Property Value
    Type Description
    System.Boolean

    The default value is true

    IsReadOnly

    Represents whether a cell in the sheet is read-only or not. If set to true, it prevents editing the specified cell in the sheet.

    Declaration
    public bool IsReadOnly { get; set; }
    Property Value
    Type Description
    System.Boolean

    The default value is false

    Notes

    Specifies the note of the cell.

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

    The default value is ""

    RowSpan

    Specifies the row-wise cell merge count.

    Declaration
    public int RowSpan { get; set; }
    Property Value
    Type Description
    System.Int32

    The default value is 1

    Style

    Specifies the cell style options.

    Declaration
    public SpreadsheetCellStyle Style { get; set; }
    Property Value
    Type Description
    SpreadsheetCellStyle

    The default value is null

    Validation

    Specifies the validation of the cell.

    Declaration
    public SpreadsheetValidation Validation { get; set; }
    Property Value
    Type Description
    SpreadsheetValidation

    The default value is null

    Value

    Defines the value of the cell which can be text or number.

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

    The default value is ""

    Wrap

    Wraps the cell text to the next line, if the text width exceeds the column width.

    Declaration
    public bool Wrap { get; set; }
    Property Value
    Type Description
    System.Boolean

    The default value is false

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