Skip to main content

CustomDrawEventArgs.Painter Property

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

Namespace: DevExpress.XtraVerticalGrid.Events

Assembly: DevExpress.XtraVerticalGrid.v23.1.dll

NuGet Package: DevExpress.Win.VerticalGrid


public ObjectPainter Painter { get; }

Property Value

Type Description

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


The ObjectPainter object exposes the DrawObject method. Each object’s descendant overrides this method to paint the element using view information passed as the method’s parameter. The parameter is an ObjectInfoArgs descendant.

To implement default element painting, you pass the CustomDrawEventArgs.ObjectArgs property value as the parameter. Alternatively, you can create your own ObjectInfoArgs descendant, customize it as needed and pass it to this method.

See Also