ASP.NET Pack Programmer's Guide
DiagramLink.Shape Property
See Also
 





Gets or sets the type of link segments and how they are positioned relatively to each other.

Namespace: MindFusion.Diagramming
Package: MindFusion.Diagramming

 Syntax

C#  Copy Code

public LinkShape Shape { get; set; }

Visual Basic  Copy Code

Public Property Shape As LinkShape

 Property Value

A member of the LinkShape enumeration. Initialized with the value of LinkShape.

 Remarks

This property specifies whether the segments of a link are straight lines or curves. Its value together with SegmentCount also specifies the number of ControlPoints. Each Bezier segment is defined by four control points, where the second and third ones do not lie on the segment but specify its curvature. All other LinkShape types are defined by two control points per segment. Adjacent segments share a control point, and when moved it will modify both of them.

Cascading links consist of straight lines whose orientation is constrained to strictly horizontal or vertical, where adjacent segments are orthogonal to each other. The orientation of the first segment of a cascading link depends on the value of CascadeOrientation. If that property is set to Auto, users may change the cascade orientation interactively.

Each control point of a Spline or Polyline link can be moved freely, independently from each other, and the link will pass through all control points drawn respectively as an interpolating spline curve or as a polygonal chain.

 See Also

DiagramLink Members
DiagramLink Class
MindFusion.Diagramming Namespace
ControlPoints Property
AutoRoute Property