Search
DiagramLink.DrawArrowhead Method
See Also
 





Draws an arrowhead shape.

Namespace: MindFusion.Diagramming
Package: MindFusion.Diagramming

 Syntax

C#  Copy Code

public static void DrawArrowhead (
    IGraphics graphics,
    Pen pen,
    Brush brush,
    Shape shape,
    PointF pivot,
    PointF position,
    PointF segmentStart,
    float size,
    bool shadow
)

Visual Basic  Copy Code

Public Shared Sub DrawArrowhead( _
    graphics As IGraphics, _
    pen As Pen, _
    brush As Brush, _
    shape As Shape, _
    pivot As PointF, _
    position As PointF, _
    segmentStart As PointF, _
    size As Single, _
    shadow As Boolean _
)

 Parameters

graphics

The graphics 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 PointF 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.

shadow

A bool value that specifies if drawing shadow, which causes the passed brush and pen to be used instead of those provided by the shape.

 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