CustomDrawEventArgs.Painter Property

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

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v21.1.dll


public ObjectPainter Painter { get; }

Property Value

Type Description

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


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 CustomDrawEventArgs.ObjectArgs property value as its parameter. Alternatively, you can create your own ObjectInfoArgs descendant, customize it as needed and pass it to this method.

See Also