Raised to perform custom drawing on a toolbar's shape image.
Namespace: MindFusion.Diagramming.WinForms
Assembly: MindFusion.Diagramming.WinForms.Controls
C# Copy Code |
---|
public event EventHandler<DrawNodeEventArgs> DrawNode |
Visual Basic Copy Code |
---|
Public Event DrawNode As EventHandler(Of DrawNodeEventArgs) |
DrawNode event handlers receive an argument of type DrawNodeEventArgs. The following DrawNodeEventArgs members provide information relevant to the event:
Member name | Description |
---|---|
A node used to draw a toolbar button image. | |
A Graphics object used to draw the button image. | |
The bounding rectangle of the node to draw. |
The toolbar creates an image for each Shape or for the shapes defined in Shapes. A shape image is generated dynamically by creating a ShapeNode of that shape and drawing it in a bitmap. The toolbar treats the node as custom drawn one of type Additional and raises the DrawNode event after the standard shape drawing is performed.