PivotCustomDrawFieldValueEventArgs.Painter Property
Gets the painter object that provides the default element painting mechanism.
Namespace: DevExpress.XtraPivotGrid
Assembly: DevExpress.XtraPivotGrid.v22.1.dll
NuGet Package: DevExpress.Win.PivotGrid
Declaration
Property Value
Type | Description |
---|---|
DevExpress.XtraPivotGrid.ViewInfo.PivotHeaderObjectPainter | A DevExpress.XtraPivotGrid.ViewInfo.PivotHeaderObjectPainter object. |
Remarks
The Painter object provides the DrawObject method that allows you to paint the current field value using the default painting mechanism. To implement default element painting, you need to pass the event’s PivotCustomDrawFieldValueEventArgs.Info parameter to the DrawObject method. Alternatively, you can create your own DevExpress.XtraPivotGrid.ViewInfo.PivotHeaderObjectInfoArgs object, customize it, and pass it to the method.
Note
If you try to access the Painter property while an asynchronous operation is being performed, an exception will be thrown. When the operation is in progress, use the PivotCustomDrawFieldValueThreadSafeEventArgs.Painter property exposed by a thread-safe event parameter instead. To access the thread-safe event parameter, use the PivotCustomDrawFieldValueEventArgs.ThreadSafeArgs property. To determine whether an asynchronous operation is being performed, use the pivot grid’s IThreadSafeAccessible.IsAsyncInProgress property. For more information, see Asynchronous Mode.