Raised when the user starts drawing a new node, just after the DiagramNode instance is created.
Namespace: MindFusion.Diagramming
Package: MindFusion.Diagramming
C# Copy Code |
---|
public event EventHandler<NodeEventArgs> InitializeNode |
Visual Basic Copy Code |
---|
Public Event InitializeNode As EventHandler(Of NodeEventArgs) |
InitializeNode event handlers receive an argument of type NodeEventArgs. The following NodeEventArgs members provide information relevant to the event:
Member name | Description |
---|---|
The new DiagramNode instance. |
This event is raised immediately after the user starts drawing a new node. It lets you set the appearance properties of the node if you need their values to be different from the default ones defined in the Diagram object, or if they don't have correspondent properties in the Diagram class. The Initialize* events are intended only for initializing the appearance of items. Do not alter the structure of the diagram from their handlers, that is, do not create new items nor delete existing ones; if you do that, the control will be in an undefined state and will likely throw an exception at some point.
NetDiagram Programmer's Guide | © 2023 MindFusion |