menu

ASP.NET MVC - EJ2

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

    Show / Hide Table of Contents

    Class SpreadsheetCellStyle

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

    Constructors

    SpreadsheetCellStyle()

    Declaration
    public SpreadsheetCellStyle()

    Properties

    BackgroundColor

    Specifies background color to the cell.

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

    The default value is "#ffffff"

    Border

    Specifies border of the cell.

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

    The default value is ""

    BorderBottom

    Specifies bottom border of the cell.

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

    The default value is ""

    BorderLeft

    Specifies left border of the cell.

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

    The default value is ""

    BorderRight

    Specifies right border of the cell.

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

    The default value is ""

    BorderTop

    Specifies top border of the cell.

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

    The default value is ""

    Color

    Specifies font color to the cell.

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

    The default value is "#000000"

    ContentTemplate

    To get or set value for ContentTemplate.

    Declaration
    public MvcTemplate<object> ContentTemplate { get; set; }
    Property Value
    Type
    Syncfusion.EJ2.MvcTemplate<System.Object>

    FontFamily

    Specifies font family to the cell.

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

    FontSize

    Specifies font size to the cell.

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

    The default value is "11pt"

    FontStyle

    Specifies font style to the cell.

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

    The default value is FontStyle.Normal

    FontWeight

    Specifies font weight to the cell.

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

    The default value is FontWeight.Normal

    TextAlign

    Specifies text align style to the cell.

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

    The default value is TextAlign.Left

    TextDecoration

    Specifies text decoration to the cell.

    Declaration
    public TextDecoration TextDecoration { get; set; }
    Property Value
    Type
    TextDecoration

    TextIndent

    Specifies text indent style to the cell.

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

    The default value is "0pt"

    VerticalAlign

    Specifies vertical align to the cell.

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

    The default value is VerticalAlign.Bottom

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