Back to Devexpress

Formatting.Flags Property

officefileapi-devexpress-dot-spreadsheet-dot-formatting-78daf22f.md

latest3.2 KB
Original Source

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

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
StyleFlags Flags { get; }
vb
ReadOnly Property Flags As StyleFlags

Property Value

TypeDescription
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.

GroupAttributesFlag
AlignmentHorizontal and vertical alignment of cell content, indentation and text wrap.StyleFlags.Alignment
BordersCell border line styles and colors.StyleFlags.Borders
FillCell background settings (background color, pattern type, shading color and gradient fill characteristics).StyleFlags.Fill
FontCell font settings (name, style, color and size).StyleFlags.Font
Number FormatCell number format.StyleFlags.Number
ProtectionCell protection options (Locked and Hidden).StyleFlags.Protection

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

See Also

Format Spreadsheet Cells

Formatting Interface

Formatting Members

DevExpress.Spreadsheet Namespace