Skip to main content

CustomDrawNodeImagesEventArgs(GraphicsCache, TreeListNode, Int32, Int32, Rectangle, Rectangle, Point, Point, StyleObjectInfoArgs) Constructor

Initializes a new instance of the CustomDrawNodeImagesEventArgs class.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.2.dll

Declaration

public CustomDrawNodeImagesEventArgs(
    GraphicsCache cache,
    TreeListNode node,
    int selectImageIndex,
    int stateImageIndex,
    Rectangle selectRect,
    Rectangle stateRect,
    Point selectImageLocation,
    Point stateImageLocation,
    StyleObjectInfoArgs info
)

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.

node TreeListNode

A TreeListNode object specifying the node being precessed. This value is assigned to the DevExpress.XtraTreeList.CustomDrawEventArgs.Node property.

selectImageIndex Int32

An integer value representing the zero-based index of the image displayed within the node when it is focused. This value is assigned to the CustomDrawNodeImagesEventArgs.SelectImageIndex property.

stateImageIndex Int32

An integer value representing the node state’s image index. This value is assigned to the CustomDrawNodeImagesEventArgs.StateImageIndex property.

selectRect Rectangle

A System.Drawing.Rectangle structure representing the bounding rectangle of the select image. This value is assigned to the CustomDrawNodeImagesEventArgs.SelectRect property.

stateRect Rectangle

A System.Drawing.Rectangle structure that represents the state image’s bounding rectangle. This value is assigned to the CustomDrawNodeImagesEventArgs.StateRect property.

selectImageLocation Point

A System.Drawing.Point structure that represents the top-left point of the selected image. This value is assigned to the CustomDrawNodeImagesEventArgs.SelectImageLocation property.

stateImageLocation Point

A System.Drawing.Point structure specifying the top-left corner of the state image. This value is assigned to the CustomDrawNodeImagesEventArgs.StateImageLocation property.

info DevExpress.Utils.Drawing.StyleObjectInfoArgs

A DevExpress.Utils.Drawing.StyleObjectInfoArgs object that provides information used to paint an element. This value is assigned to the CustomDrawObjectEventArgs.Info property.

See Also