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.v24.2.Core.dll
NuGet Package: DevExpress.Spreadsheet.Core
#Declaration
StyleFlags Flags { get; }
#Property Value
Type | Description |
---|---|
Style |
A Style |
#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. | Style |
Borders | Cell border line styles and colors. | Style |
Fill | Cell background settings (background color, pattern type, shading color and gradient fill characteristics). | Style |
Font | Cell font settings (name, style, color and size). | Style |
Number Format | Cell number format. | Style |
Protection | Cell protection options (Locked and Hidden). | Style |
For examples of how to format cells, see the Formatting Cells section.