Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Collapse]WinForms Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications and Dialogs
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Expand]Data Grid
  [Expand]Vertical Grid
  [Expand]Pivot Grid
  [Collapse]Tree List
   [Expand]Product Information
   [Collapse]Feature Center
    [Expand]Data Binding
    [Expand]Nodes
    [Expand]Data Editing
    [Expand]Data Representation
    [Expand]Sorting
    [Expand]Filtering
    [Expand]Summaries
    [Collapse]Appearances and Look And Feel
     [Expand]Alpha Blending
     [Expand]Appearances
     [Collapse]Custom Drawing
       Custom Draw Scenarios
       List of Custom Draw Events
       Manual Invalidation
       Painters
      Skins and LookAndFeel
    [Expand]Focus, Selection and Navigation
     Formatting Cell Values
    [Expand]Miscellaneous
   [Expand]Visual Elements
   [Expand]Design-Time Features
   [Expand]Examples
   [Expand]End User Capabilities
   [Expand]Member Tables
  [Expand]Chart Control
  [Expand]Diagrams
  [Expand]Gauges
  [Expand]Map Control
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]Printing-Exporting
  [Expand]PDF Viewer
   Reporting
  [Expand]Snap
  [Expand]TreeMap Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

List of Custom Draw Events

You can handle custom draw events provided by the TreeList to paint the control's elements manually, or change the way the elements are painted by default.

Custom draw events are raised before tree list elements are painted. Each custom draw event handler receives a CustomDrawEventArgs descendant as a parameter whose properties specify the bounds of an element, the appearance settings used to paint the element, etc.

Note

Custom painting and alpha blending features are not applied to the printed and exported versions of the Tree List.

The following table lists the custom draw events provided by the Tree List control.

Custom Draw Event Description
TreeList.CustomDrawColumnHeader Enables the column headers and column button to be custom painted.
TreeList.CustomDrawEmptyArea Enables the empty area to be custom painted.
TreeList.CustomDrawFooter Enables the footer panel to be custom painted.
TreeList.CustomDrawFooterCell Enables the footer cells to be custom painted.
TreeList.CustomDrawNodeButton Enables the node's expand button to be custom painted.
TreeList.CustomDrawNodeCell Enables the data cells to be custom painted.
TreeList.CustomDrawNodeImages Enables the node images to be custom painted.
TreeList.CustomDrawNodeIndent Enables node indents to be custom painted.
TreeList.CustomDrawNodeIndicator Enables the indicator cells to be custom painted.
TreeList.CustomDrawNodePreview Enables the node's preview section to be custom painted.
TreeList.CustomDrawRowFooter Enables the group footer to be custom painted.
TreeList.CustomDrawRowFooterCell Enables the footer cells to be custom painted.

Each event also provides parameters that contain additional information that is specific to the element being painted. For example, when a summary footer cell is painted, the event parameter provides properties that allow the owning column, the type of applied summary and the display value to be obtained.

For information on how to use custom draw events, see Custom Draw Scenarios.

Expanded See Also

How would you rate this topic?​​​​​​​