User Drawn Node
A User Drawn Node allows the developer to take over complete control of the node item presentation in the List. It can be used to inject interactive presentation or provide alternate UI to the default presentation of a list node item.
The User Drawn Node event fires before a node is painted. The event passes an e argument that contains the following custom properties …
· e.Graphics (of type System.Drawing.Graphics): A handle to the graphics object responsible for drawing the node. Through the e.Graphics object the developer has access to the GDI+ methods for drawing objects to a display device.
· e.NodeItem (of type dbiNodeItem): The dbiNodeItem that will be drawn.
· e.PaintNode (of type Boolean): Determines if the internal routines of the control should draw the node. When the PaintNode property is set to False the control does not execute its internal paint routine and the developer has control over the painting of the node.
· e.Rect (of type System.Drawing.Rectangle): A rectangle representing the area being painted in the control. The rectangle is defined by an X,Y coordinate (top left of rectangle) and a width and height of the area being painted. All values are in pixels. . In the UserDrawnNode event the e.Rect object represents the Node Item area to be painted in the List.