Skip to main content
A newer version of this page is available. .
Row

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.v18.2.Core.dll

Declaration

StyleFlags Flags { get; }

Property Value

Type Description
StyleFlags

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

Remarks

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