Skip to main content

PivotCustomCellAppearanceEventArgs.Foreground Property

Gets or sets the brush used to paint the foreground of the processed cell.

Namespace: DevExpress.Xpf.PivotGrid

Assembly: DevExpress.Xpf.PivotGrid.v23.1.dll

NuGet Package: DevExpress.Wpf.PivotGrid


public Brush Foreground { get; set; }

Property Value

Type Description

A Brush object used to paint the foreground of the processed cell.


Use the PivotCustomCellAppearanceEventArgs.IsExporting property to obtain whether the pivot grid is being exported (or printed). If the PivotCustomCellAppearanceEventArgs.IsExporting property returns true, a brush assigned to the Foreground property will affect the cell’s export (or print) appearance. Otherwise, the brush will affect the cell’s display appearance.

To specify the brush used to paint the cell’s background, use the PivotCustomCellAppearanceEventArgs.Background property.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Foreground property.


The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also