Search
ShapeToolBar.DrawNode Event
See Also
 





Raised to perform custom drawing on a toolbar's shape image.

Namespace: MindFusion.Diagramming.WinForms
Assembly: MindFusion.Diagramming.WinForms.Controls

 Syntax

C#  Copy Code

public event EventHandler<DrawNodeEventArgs> DrawNode

Visual Basic  Copy Code

Public Event DrawNode As EventHandler(Of DrawNodeEventArgs)

 Event Data

DrawNode event handlers receive an argument of type DrawNodeEventArgs. The following DrawNodeEventArgs members provide information relevant to the event:

Member name

Description

Node

A node used to draw a toolbar button image.

Graphics

A Graphics object used to draw the button image.

Bounds

The bounding rectangle of the node to draw.

 Remarks

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.

 See Also