Skip to main content

CustomDrawObjectEventArgs.Painter Property

Gets the painter object that provides the default element painting mechanism.

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v24.1.dll

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

Declaration

public ObjectPainter Painter { get; }

Property Value

Type Description
DevExpress.Utils.Drawing.ObjectPainter

An ObjectPainter descendant providing the default painting mechanism for the painted element.

Remarks

The ObjectPainter object provides a DrawObject method. Each object’s descendant overrides this method to paint the element using specified View information. View information is specified as the method’s parameter. The parameter can accept ObjectInfoArgs descendants. To implement default element painting, you need to pass the CustomDrawObjectEventArgs.Info property value as this parameter. Alternatively, you can create your own ObjectInfoArgs descendant, customize it and pass it to the method.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Painter property.

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.

See Also