Raised when an anchor point must be custom-drawn.
Namespace: MindFusion.Diagramming
Package: MindFusion.Diagramming
C# Copy Code |
---|
public event EventHandler<DrawAnchorPointEventArgs> DrawAnchorPoint |
Visual Basic Copy Code |
---|
Public Event DrawAnchorPoint As EventHandler(Of DrawAnchorPointEventArgs) |
DrawAnchorPoint event handlers receive an argument of type DrawAnchorPointEventArgs. The following DrawAnchorPointEventArgs members provide information relevant to the event:
Member name | Description |
---|---|
A DiagramNode containing the anchor point that is being painted. | |
Index of the anchor point within the node's AnchorPattern. | |
An AnchorPattern instance that contains the anchor point definition. | |
A PointF specifying the location of the anchor point. | |
An object implementing the IGraphics interface whose methods should be used to draw the anchor point mark. |
The following example demonstrates how to draw images for anchor points:
C# Copy Code |
---|
void diagram_DrawAnchorPoint(object sender, DrawAnchorPointEventArgs e) |
Visual Basic Copy Code |
---|
Sub diagram_DrawAnchorPoint(ByVal sender As Object, ByVal e As DrawAnchorPointEventArgs) Handles diagram.DrawAnchorPoint |
NetDiagram Programmer's Guide | © 2023 MindFusion |