GemBox.Spreadsheet
  • Overview
  • Examples
  • Free version
  • Support
  • Pricelist

    Show / Hide Table of Contents

    BuiltInCellStyleName Enum

    Namespace:
    GemBox.Spreadsheet
    Assembly:
    GemBox.Spreadsheet.dll

    Represents a built-in style name.

    • C#
    • VB.NET
    public enum BuiltInCellStyleName
    Public Enum BuiltInCellStyleName
    Remarks

    Conceptually, cell formatting is divided into following groups:

    • Number - indicates how to format and render the numeric value of a cell. Associated property is NumberFormat.
    • Alignment - formatting information pertaining to text alignment in cells. Associated properties are HorizontalAlignment, VerticalAlignment, Indent, Rotation, IsTextVertical, WrapText and ShrinkToFit.
    • Font - defines the properties for the used font. Associated property is Font.
    • Border - expresses a single set of cell border formats (left, right, top, bottom and diagonal). Associated property is Borders.
    • Fill - specifies fill formatting (pattern or gradient). Associated property is FillPattern.
    • Protection - contains protection properties associated with the cell. Associated properties are Locked and FormulaHidden.

    Additional CellStyle properties not associated with any formatting group are:

    • Name - name of the referenced Style.
    • QuotePrefix - true to store numeric value of a cell as text; otherwise, false.
    • IsDefault - true if Name Style is default (Normal) and there are no additional modifications of cell formatting; otherwise, false.

    ExcelFile contains a set of Styles which can be referenced by multiple cells.

    ExcelFile must always contain at least one Style which cannot be removed and is, by default, referenced by all cells. This default style is Normal.

    Style can either be built-in or user-defined. Built-in style is accessible from Styles via BuiltInCellStyleName enumeration.

    Cell formatting group (Number, Alignment, Font, Border, Fill or Protection) (and its associated properties) is resolved from Name Style, unless cell formatting group or its associated property is modified.

    Cell formatting is available for one or more cells through Style property which is available on ExcelCell and CellRange types. Cell formatting specified on ExcelColumn and ExcelRow types through Style property is simply propagated to cell formatting of its Cells.

    note

    For performance reasons, cell formatting on CellRange is resolved based just on its top-left cell formatting, except borders which are resolved based on corner cells depending on border side.

    Setting cell formatting property on CellRange is propagated to each cell in a range.

    To set Style to one or more cells, simply assign it to Style property.

    tip

    Preferable way to modify formatting property of multiple cells is to get CellRange to which all those cells belong, and use Style property of that range to make the modification.

    If modifying multiple formatting properties of a CellRange, without preserving unmodified formatting properties, preferable way is to create new instance of CellStyle, make modifications on it, and assign it to Style property of that range.

    GemBox.Spreadsheet internally takes care not to allocate unnecessary cells when formatting a range of cells (for example, when formatting Cells) and to cache formatting information of equally formatted cells, at the appropriate time, to reduce memory footprint.

    Fields

    Accent1

    'Accent1' built-in style.

    Accent1Pct20

    '20% - Accent1' built-in style.

    Accent1Pct40

    '40% - Accent1' built-in style.

    Accent1Pct60

    '60% - Accent1' built-in style.

    Accent2

    'Accent2' built-in style.

    Accent2Pct20

    '20% - Accent2' built-in style.

    Accent2Pct40

    '40% - Accent2' built-in style.

    Accent2Pct60

    '60% - Accent2' built-in style.

    Accent3

    'Accent3' built-in style.

    Accent3Pct20

    '20% - Accent3' built-in style.

    Accent3Pct40

    '40% - Accent3' built-in style.

    Accent3Pct60

    '60% - Accent3' built-in style.

    Accent4

    'Accent4' built-in style.

    Accent4Pct20

    '20% - Accent4' built-in style.

    Accent4Pct40

    '40% - Accent4' built-in style.

    Accent4Pct60

    '60% - Accent4' built-in style.

    Accent5

    'Accent5' built-in style.

    Accent5Pct20

    '20% - Accent5' built-in style.

    Accent5Pct40

    '40% - Accent5' built-in style.

    Accent5Pct60

    '60% - Accent5' built-in style.

    Accent6

    'Accent6' built-in style.

    Accent6Pct20

    '20% - Accent6' built-in style.

    Accent6Pct40

    '40% - Accent6' built-in style.

    Accent6Pct60

    '60% - Accent6' built-in style.

    Bad

    'Bad' built-in style.

    Calculation

    'Calculation' built-in style.

    CheckCell

    'Check Cell' built-in style.

    ColLevel1

    'ColLevel_1' built-in style.

    ColLevel2

    'ColLevel_2' built-in style.

    ColLevel3

    'ColLevel_3' built-in style.

    ColLevel4

    'ColLevel_4' built-in style.

    ColLevel5

    'ColLevel_5' built-in style.

    ColLevel6

    'ColLevel_6' built-in style.

    ColLevel7

    'ColLevel_7' built-in style.

    Comma

    'Comma' built-in style.

    Comma0

    'Comma [0]' built-in style.

    Currency

    'Currency' built-in style.

    Currency0

    'Currency [0]' built-in style.

    ExplanatoryText

    'Explanatory Text' built-in style.

    FollowedHyperlink

    Followed Hyperlink built-in style.

    Good

    'Good' built-in style.

    Heading1

    'Heading 1' built-in style.

    Heading2

    'Heading 2' built-in style.

    Heading3

    'Heading 3' built-in style.

    Heading4

    'Heading 4' built-in style.

    Hyperlink

    Hyperlink built-in style.

    Input

    'Input' built-in style.

    LinkedCell

    'Linked Cell' built-in style.

    Neutral

    'Neutral' built-in style.

    Normal

    'Normal' built-in style.

    Note

    Note built-in style.

    Output

    'Output' built-in style.

    Percent

    'Percent' built-in style.

    RowLevel1

    'RowLevel_1' built-in style.

    RowLevel2

    'RowLevel_2' built-in style.

    RowLevel3

    'RowLevel_3' built-in style.

    RowLevel4

    'RowLevel_4' built-in style.

    RowLevel5

    'RowLevel_5' built-in style.

    RowLevel6

    'RowLevel_6' built-in style.

    RowLevel7

    'RowLevel_7' built-in style.

    Title

    'Title' built-in style.

    Total

    'Total' built-in style.

    WarningText

    'Warning Text' built-in style.

    See Also
    CellStyleCollection
    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.