ASP.NET Core

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SpreadsheetStyleBuilder<T> - ASP.NETCore API Reference | Syncfusion

    Show / Hide Table of Contents

    Class SpreadsheetStyleBuilder<T>

    Represents a class for SpreadsheetStyle which includes color, background color, font family, font size, text decorations, font weight properties.

    Inheritance
    System.Object
    SpreadsheetStyleBuilder<T>
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.JavaScript
    Assembly: Syncfusion.EJ.dll
    Syntax
    public class SpreadsheetStyleBuilder<T>
        where T : class
    Type Parameters
    Name Description
    T

    Constructors

    SpreadsheetStyleBuilder(Cell)

    Initializes a new instance of the SpreadsheetStyleBuilder<T> with the specified cell.

    Declaration
    public SpreadsheetStyleBuilder(Cell cell)
    Parameters
    Type Name Description
    Cell cell

    The cell using Cell object.

    SpreadsheetStyleBuilder(RangeSetting)

    Initializes a new instance of the SpreadsheetStyleBuilder<T> with the specified range settings.

    Declaration
    public SpreadsheetStyleBuilder(RangeSetting setting)
    Parameters
    Type Name Description
    RangeSetting setting

    The setting using RangeSettings object.

    SpreadsheetStyleBuilder(Sheet)

    Initializes a new instance of the SpreadsheetStyleBuilder<T> with the specified sheet settings.

    Declaration
    public SpreadsheetStyleBuilder(Sheet setting)
    Parameters
    Type Name Description
    Sheet setting

    The setting using Sheet object.

    Methods

    BackgroundColor(String)

    Specifies the background color for cells.

    Declaration
    public SpreadsheetStyleBuilder<T> BackgroundColor(string bgColor)
    Parameters
    Type Name Description
    System.String bgColor

    The background color for cells.

    Returns
    Type Description
    SpreadsheetStyleBuilder<T>

    Color(String)

    Specifies the color for cells.

    Declaration
    public SpreadsheetStyleBuilder<T> Color(string color)
    Parameters
    Type Name Description
    System.String color

    The color for cells.

    Returns
    Type Description
    SpreadsheetStyleBuilder<T>

    FontFamily(String)

    Specifies the font family for cells.

    Declaration
    public SpreadsheetStyleBuilder<T> FontFamily(string fontFamily)
    Parameters
    Type Name Description
    System.String fontFamily

    The font family for cells.

    Returns
    Type Description
    SpreadsheetStyleBuilder<T>

    FontSize(String)

    Specifies the font size for cells.

    Declaration
    public SpreadsheetStyleBuilder<T> FontSize(string fontSize)
    Parameters
    Type Name Description
    System.String fontSize

    The font size for cells.

    Returns
    Type Description
    SpreadsheetStyleBuilder<T>

    FontStyle(String)

    Specifies the font style for cells.

    Declaration
    public SpreadsheetStyleBuilder<T> FontStyle(string fontStyle)
    Parameters
    Type Name Description
    System.String fontStyle

    The font style for cells.

    Returns
    Type Description
    SpreadsheetStyleBuilder<T>

    FontWeight(String)

    Specifies the font weight for cells.

    Declaration
    public SpreadsheetStyleBuilder<T> FontWeight(string fontWeight)
    Parameters
    Type Name Description
    System.String fontWeight

    The Font weight conatins string values as number for cells.

    Returns
    Type Description
    SpreadsheetStyleBuilder<T>

    TextAlign(String)

    Specifies the text alignment for cells.

    Declaration
    public SpreadsheetStyleBuilder<T> TextAlign(string textAlign)
    Parameters
    Type Name Description
    System.String textAlign

    The text alignment for cells.

    Returns
    Type Description
    SpreadsheetStyleBuilder<T>

    TextDecoration(String)

    Specifies the text decoration for cells.

    Declaration
    public SpreadsheetStyleBuilder<T> TextDecoration(string textDecoration)
    Parameters
    Type Name Description
    System.String textDecoration

    The text decoration for cells.

    Returns
    Type Description
    SpreadsheetStyleBuilder<T>

    VerticalAlign(String)

    Specifies the vertical alignment for cells.

    Declaration
    public SpreadsheetStyleBuilder<T> VerticalAlign(string verticalAlign)
    Parameters
    Type Name Description
    System.String verticalAlign

    The vertical alignment for cells.

    Returns
    Type Description
    SpreadsheetStyleBuilder<T>
    Back to top Generated by DocFX
    Copyright © 2001 - 2021 Syncfusion Inc. All Rights Reserved