Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

PivotCustomCellAppearanceEventArgs.Background Property

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

Namespace: DevExpress.Xpf.PivotGrid

Assembly: DevExpress.Xpf.PivotGrid.v24.2.dll

NuGet Package: DevExpress.Wpf.PivotGrid

#Declaration

public Brush Background { get; set; }

#Property Value

Type Description
Brush

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

#Remarks

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 Background 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 foreground, use the PivotCustomCellAppearanceEventArgs.Foreground property.

See Also