CustomDrawEventArgs.DefaultDraw() Method
Performs default painting of an element.
Namespace: DevExpress.XtraTreeList
Assembly: DevExpress.XtraTreeList.v24.2.dll
Declaration
Remarks
The DefaultDraw method can be useful if you need to draw custom information over the default element rendering. To do this, call the DefaultDraw method and then draw custom information using the methods provided by the CustomDrawEventArgs.Graphics and/or CustomDrawEventArgs.Appearance objects.
The DefaultDraw method automatically sets the CustomDrawEventArgs.Handled property to true to prevent additional default painting from being performed after a custom draw event handler has been completed.
The DefaultDraw method does nothing if the CustomDrawEventArgs.Handled property has already been set to true.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DefaultDraw() method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.