New to Telerik UI for WPF? Start a free 30-day trial

Parametrization of a polyline geometry which allows you to use multiple Points and bridges (using the Crossings data and the BridgeType). The CreateBaseLineGeometry(LineSpecification) method uses such specifications to create a concrete geometry.

There are a few things to consider in relation to crossings:

  • None: the StartPoint and EndPoint will be used to define the start and end of the polyline. If some caps are used these points will be shifted if necessary so that the polyline makes space for the caps. This depends on the type of the cap.
  • Some bridge type:the Crossings data will define the start and end points, while the StartPoint and EndPoint will be irrelevant in this case.

Definition

Namespace:Telerik.Windows.Controls.Diagrams

Assembly:Telerik.Windows.Controls.Diagrams.dll

Syntax:

C#
public class LineSpecification

Inheritance: objectLineSpecification

Derived Classes: PolylineSpecification

Constructors

Initializes a new instance of the LineSpecification class.

C#
public LineSpecification()

Properties

Gets or sets the Bezier tension.

C#
public double BezierTension { get; set; }
Property Value:

A value or zero turns the Bezier connection into a straight line, a value of one and above increase the sharpness of the Bezier curve.

Bounds

Rect

Gets or sets the bounds of the connection.

C#
public Rect Bounds { get; set; }

Gets or sets the type of the bridge or crossing.

C#
public BridgeType BridgeType { get; set; }

Gets or sets the type of the connection.

C#
public ConnectionType ConnectionType { get; set; }
Property Value:

The type of the connection.

Gets or sets the crossings data.

C#
public CrossingsData Crossings { get; set; }

Gets or sets the end point.

C#
public Point EndPoint { get; set; }

This position is with respect to the local coordinate system (of the connection).

Gets or sets the intermediate connection points.

C#
public IList<Point> Points { get; set; }

Do NOT include the start/end points.

Gets or sets the corners should be rounded.

C#
public bool RoundedCorners { get; set; }
Property Value:

true if [rounded corners]; otherwise, false.

Gets or sets the start point.

C#
public Point StartPoint { get; set; }

This position is with respect to the local coordinate system (of the connection).