Back to Devexpress

PivotCustomDrawCellEventArgs.DefaultDraw() Method

windowsforms-devexpress-dot-xtrapivotgrid-dot-pivotcustomdrawcelleventargs-7935b9df.md

latest1.8 KB
Original Source

PivotCustomDrawCellEventArgs.DefaultDraw() Method

Performs default painting of an element.

Namespace : DevExpress.XtraPivotGrid

Assembly : DevExpress.XtraPivotGrid.v25.2.dll

NuGet Package : DevExpress.Win.PivotGrid

Declaration

csharp
public void DefaultDraw()
vb
Public Sub DefaultDraw

Remarks

The DefaultDraw method can be useful if you need to draw custom information over the default element rendering. To do this, call the DefaultDraw method and then draw custom information using the methods provided by the PivotCustomDrawCellEventArgs.Graphics object.

The DefaultDraw method automatically sets the PivotCustomDrawCellEventArgs.Handled property to true to prevent additional default painting from being performed after a custom draw event handler has been completed.

The DefaultDraw method does nothing if the PivotCustomDrawCellEventArgs.Handled property has already been set to true.

See Also

PivotCustomDrawCellEventArgs Class

PivotCustomDrawCellEventArgs Members

DevExpress.XtraPivotGrid Namespace