Search
DiagramBase.DrawNode Event
See Also
 





Raised when a diagram node must be custom drawn.

Namespace: MindFusion.Diagramming
Package: MindFusion.Diagramming

 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

The DiagramNode that should be custom drawn.

Bounds

The bounding rectangle of the node being drawn.

Shadow

true if now drawing the node's shadow, otherwise false.

Graphics

An object implementing the IGraphics interface whose methods should be used to draw the node.

 Remarks

This event is raised for nodes whose CustomDraw property is enabled.

 See Also