CustomDrawObjectEventArgs.Painter Property

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

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v20.1.dll

Declaration

public ObjectPainter Painter { get; }
Public ReadOnly Property Painter As ObjectPainter

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.

See Also