Skip to main content

CustomDrawObjectEventArgs Class

Provides data for the ColumnView.CustomDrawFilterPanel event.

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v24.1.dll

NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

public class CustomDrawObjectEventArgs :
    CustomDrawEventArgs

Remarks

The ColumnView.CustomDrawFilterPanel event fires before the filter panel is painted. It enables you to paint the filter panel manually or modify its appearance settings before they are painted using the default mechanism.

The CustomDrawObjectEventArgs introduces CustomDrawObjectEventArgs.Info and CustomDrawObjectEventArgs.Painter properties. These properties are required for complex elements. The CustomDrawObjectEventArgs.Info property provides information about the element’s state, its constituents, etc. The CustomDrawObjectEventArgs.Painter property enables default painting based on specified element settings.

Settings provided by the CustomDrawObjectEventArgs class are common to all custom painting event parameters that provide data for painting complex elements. In other words, most objects providing painting data are derived from the CustomDrawObjectEventArgs class. Note that each descendant overrides the CustomDrawObjectEventArgs.Info property to provide settings specific to a particular element. Refer to the Custom Painting Basics help topic for details.

See Also