CustomDrawObjectEventArgs Class
Provides data for the ColumnView.CustomDrawFilterPanel event.
Namespace: DevExpress.XtraGrid.Views.Base
Assembly: DevExpress.XtraGrid.v18.1.dll
Declaration
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.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CustomDrawObjectEventArgs class.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.