Search
DiagramLink.BaseShape Property
See Also
 





Gets or sets what shape to display at the beginning of a link.

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

 Syntax

C#  Copy Code

public Shape BaseShape { get; set; }

Visual Basic  Copy Code

Public Property BaseShape As Shape

 Property Value

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

 Remarks

The property specifies the shape that is displayed at the beginning of a link, at the point where the link connects to its Origin node. This shape is rotated simultaneously with the first 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