.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

Formatting.Flags Property

Provides access to flags that control which cell format attributes are specified by the applied cell style and which ones are specified by direct cell formatting.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v20.2.Core.dll


StyleFlags Flags { get; }

Property Value

Type Description

A StyleFlags object providing access to flags, each of which corresponds to a specific group of format attributes.


The actual appearance of a cell is a combination of settings specified by the applied style and the direct cell format settings (see the Formatting Cells document for details). Each formatting type provides a set of flags (Flags). Each flag corresponds to a specific group of format attributes. You can use these flags when formatting a cell to control whether to use attributes specified in the applied style or attributes specified directly for the cell.

Group Attributes Flag
Alignment Horizontal and vertical alignment of cell content, indentation and text wrap. StyleFlags.Alignment
Borders Cell border line styles and colors. StyleFlags.Borders
Fill Cell background settings (background color, pattern type, shading color and gradient fill characteristics). StyleFlags.Fill
Font Cell font settings (name, style, color and size). StyleFlags.Font
Number Format Cell number format. StyleFlags.Number
Protection Cell protection options (Locked and Hidden). StyleFlags.Protection

For examples of how to format cells, see the Formatting Cells section.

See Also