Skip to main content

CustomDrawEventArgs(GraphicsCache, Rectangle, AppearanceObject, ObjectPainter, Boolean) Constructor

Initializes a new instance of the CustomDrawEventArgs class with the specified CustomDrawEventArgs.Painter property.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.1.dll

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

Declaration

public CustomDrawEventArgs(
    GraphicsCache cache,
    Rectangle bounds,
    AppearanceObject appearance,
    ObjectPainter painter,
    bool isRightToLeft
)

Parameters

Name Type Description
cache GraphicsCache

A GraphicsCache object which specifies the storage for the most used pens, fonts and brushes. This value is assigned to the CustomDrawEventArgs.Cache property.

bounds Rectangle

A Rectangle structure which represents the painted element’s bounding rectangle. This value is assigned to the CustomDrawEventArgs.Bounds property.

appearance AppearanceObject

An AppearanceObject object which specifies the painted element’s appearance settings. This value is assigned to the CustomDrawEventArgs.Appearance property.

painter DevExpress.Utils.Drawing.ObjectPainter

An DevExpress.Utils.Drawing.ObjectPainter object that provides facilities for painting an element using the default mechanism. This value is assigned to the CustomDrawEventArgs.Painter property.

isRightToLeft Boolean

A Boolean value that specifies whether the TreeList’s elements are aligned to support locales using right-to-left fonts. This value is assigned to the CustomDrawEventArgs.IsRightToLeft property.

See Also