Class
LineSpecification

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.

Definition

Namespace:Telerik.Windows.Controls.Diagrams

Assembly:Telerik.Windows.Controls.Diagrams.dll

Syntax:

cs-api-definition
public class LineSpecification

Inheritance: objectLineSpecification

Derived Classes: PolylineSpecification

Constructors

LineSpecification()

Initializes a new instance of the LineSpecification class.

Declaration

cs-api-definition
public LineSpecification()

Properties

BezierTension

Gets or sets the Bezier tension.

Declaration

cs-api-definition
public double BezierTension { get; set; }

Property Value

double

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

Gets or sets the bounds of the connection.

Declaration

cs-api-definition
public Rect Bounds { get; set; }

Property Value

Rect

BridgeType

Gets or sets the type of the bridge or crossing.

Declaration

cs-api-definition
public BridgeType BridgeType { get; set; }

Property Value

BridgeType

ConnectionType

Gets or sets the type of the connection.

Declaration

cs-api-definition
public ConnectionType ConnectionType { get; set; }

Property Value

ConnectionType

The type of the connection.

Crossings

Gets or sets the crossings data.

Declaration

cs-api-definition
public CrossingsData Crossings { get; set; }

Property Value

CrossingsData

EndPoint

Gets or sets the end point.

Declaration

cs-api-definition
public Point EndPoint { get; set; }

Property Value

Point

Remarks

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

Points

Gets or sets the intermediate connection points.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
public IList<Point> Points { get; set; }

Property Value

IList<Point>

Remarks

Do NOT include the start/end points.

RoundedCorners

Gets or sets the corners should be rounded.

Declaration

cs-api-definition
public bool RoundedCorners { get; set; }

Property Value

bool

true if [rounded corners]; otherwise, false.

StartPoint

Gets or sets the start point.

Declaration

cs-api-definition
public Point StartPoint { get; set; }

Property Value

Point

Remarks

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