Skip to main content

PivotCustomDrawEventArgs Class

Provides data for the PivotGridControl.CustomDrawEmptyArea event.

Namespace: DevExpress.XtraPivotGrid

Assembly: DevExpress.XtraPivotGrid.v24.2.dll

Declaration

public class PivotCustomDrawEventArgs :
    EventArgs

Remarks

The PivotCustomDrawEventArgs class serves as a base for classes that provide information for custom drawing events. It provides common information which is required to custom paint an element of a PivotGridControl. This includes the element’s bounding rectangle, its appearance settings and the object which provides painting facilities.

The PivotCustomDrawEventArgs.Handled property specifies whether default painting is required. If it’s set to true within a handler default painting will be cancelled. Otherwise, any custom painting performed within an event handler will be overridden by the Pivot Grid Control’s standard drawing.

Note

You cannot use the PivotCustomDrawEventArgs class members to access event data while an asynchronous operation is being performed. Use the pivot grid’s IThreadSafeAccessible.IsAsyncInProgress property to determine whether an operation is in progress. If this property returns true, use a thread-safe event parameter returned by the PivotCustomDrawEventArgs.ThreadSafeArgs property to access event data. To learn more, see Asynchronous Mode.

See Also