MindFusion.Wpf Pack Programmer's Guide
DiagramLink.DrawArrowhead Method
See Also
 





Draws an arrowhead shape.

Namespace: MindFusion.Diagramming.Wpf
Assembly: MindFusion.Diagramming.Wpf

 Syntax

C#  Copy Code

public static void DrawArrowhead (
    DrawingContext drawingContext,
    Pen pen,
    Brush brush,
    Shape shape,
    Point pivot,
    Point position,
    Point segmentStart,
    double size
)

Visual Basic  Copy Code

Public Shared Sub DrawArrowhead( _
    drawingContext As DrawingContext, _
    pen As Pen, _
    brush As Brush, _
    shape As Shape, _
    pivot As Point, _
    position As Point, _
    segmentStart As Point, _
    size As Double _
)

 Parameters

drawingContext
The DrawingContext surface to draw the shape on.
pen
A Pen instance used to draw the shape outline.
brush
A Brush instance used to fill the shape.
shape
A Shape instance that defines the arrowhead geometry.
pivot
A Point specified in percents that corresponds to the arrowhead tip position within the Shape geometry.
position

A point on the drawing surface where the arrowhead tip should be located.

segmentStart

A point specifying the arrowhead direction.

size

A double value that specifies the arrowhead size.

 Remarks

This method lets you draw any Shape object at arbitrary position and angle, and is useful for rendering arrowhead shapes when custom-drawing links.

 See Also

DiagramLink Members
DiagramLink Class
MindFusion.Diagramming.Wpf Namespace
CustomDraw Property
DiagramBase.DrawLink Event