Search
DiagramLink.HeadShape Property
See Also
 





Gets or sets the shape of this link's arrowhead.

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

 Syntax

C#  Copy Code

public Shape HeadShape { get; set; }

Visual Basic  Copy Code

Public Property HeadShape As Shape

 Property Value

A Shape instance that represents an arrowhead shape. Initialized with the value of LinkHeadShape.

 Remarks

The property specifies what shape is displayed as an arrowhead. This shape is rotated simultaneously with the last segment of the link so that it follows the overall link direction.

The ArrowHeads class exposes several predefined shapes as static properties.

 Example

This link image was generated using following code:

C#  Copy Code

link.HeadShape = ArrowHeads.Triangle;
link.HeadBrush = Brushes.Red;

link.BaseShape = ArrowHeads.Circle;
link.BaseBrush = Brushes.Green;

link.IntermediateShape = ArrowHeads.BowArrow;
link.IntermediateBrush = Brushes.Yellow;

 See Also