Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

CustomDrawEventArgs Class

Provides basic data required to perform custom painting of an element.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.2.dll

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

#Declaration

public class CustomDrawEventArgs :
    EventArgs,
    IDxHtmlFieldValueProvider

#Remarks

The TreeList control gives you the ability to perform custom painting of its elements. This is performed by handling specially designed events. Such events require information about the painted element to be transmitted to them. Moreover, each of these events require a value that can be modified to specify whether default painting of an element is prohibited. The CustomDrawEventArgs class introduces properties which allow you to obtain basic data needed to paint an element. It also provides a CustomDrawEventArgs.Handled property whose value is used to specify whether default painting must be overridden.

There are various kinds of data needed to paint various elements. Thus parameters transmitted to mentioned events differ in type. The CustomDrawEventArgs class serves as the base for all objects used for these event parameters.

Objects of type CustomDrawEventArgs are transmitted to the TreeList.CustomDrawFooter event as a parameter.

See Also