Skip to main content
A newer version of this page is available. .

CustomDrawObjectEventArgs.Painter Property

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

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v18.2.dll

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 snippets (auto-collected from DevExpress Examples) contain references 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