Class
ConnectorPosition

Predefined positions of a connector in a shape.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.Windows.Diagrams.Core.dll

Syntax:

cs-api-definition
public static class ConnectorPosition

Inheritance: objectConnectorPosition

Fields

Auto

The connection's connector is calculated.

Declaration

cs-api-definition
public const string Auto = "Auto"

Field Value

string

Bottom

The connection is bound to the bottom of the shape.

Declaration

cs-api-definition
public const string Bottom = "Bottom"

Field Value

string

Gliding

The connection glides along the edge of the shape.

Declaration

cs-api-definition
public const string Gliding = "Gliding"

Field Value

string

Remarks

This connector does not have a relative position on the shape or absolute position with respect to the surface.

Left

The connection is bound to the left of the shape.

Declaration

cs-api-definition
public const string Left = "Left"

Field Value

string

Right

The connection is bound to the right of the shape.

Declaration

cs-api-definition
public const string Right = "Right"

Field Value

string

Top

The connection is bound to the top of the shape.

Declaration

cs-api-definition
public const string Top = "Top"

Field Value

string

Methods

GetKnownOffset(string)

Gets the known offset.

Declaration

cs-api-definition
public static Point GetKnownOffset(string name)

Parameters

name

string

The name of a connector.

Returns

Point

The offset with respect to the shape. If the connector is not a known connector an exception will be thrown.

Remarks

Note that the gliding connector return double.NaN since it's not located anywhere on the shape but rather spread among the edge of it.

IsCustom(IConnector)

Determines whether the specified connector is custom.

Declaration

cs-api-definition
public static bool IsCustom(this IConnector connector)

Parameters

connector

IConnector

The connector.

Returns

bool

true if the specified connector is custom; otherwise, false.

IsKnown(string)

Returns whether the given connector name is one of the predefined connector positions.

Declaration

cs-api-definition
public static bool IsKnown(string name)

Parameters

name

string

The name of a connector.

Returns

bool