New to Telerik UI for WinFormsStart a free 30-day trial

Predefined positions of a connector in a shape.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.WinControls.RadDiagram.dll

Syntax:

C#
public static class ConnectorPosition

Inheritance: objectConnectorPosition

Fields

The connection's connector is calculated.

C#
public const string Auto = "Auto"

The connection is bound to the bottom of the shape.

C#
public const string Bottom = "Bottom"

The connection glides along the edge of the shape.

C#
public const string Gliding = "Gliding"
Remarks:

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

The connection is bound to the left of the shape.

C#
public const string Left = "Left"

The connection is bound to the right of the shape.

C#
public const string Right = "Right"

The connection is bound to the top of the shape.

C#
public const string Top = "Top"

Methods

Gets the known offset.

C#
public static Point GetKnownOffset(string name)
Parameters:namestring

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.

Determines whether the specified connector is custom.

C#
public static bool IsCustom(this IConnector connector)
Parameters:connectorIConnector

The connector.

Returns:

bool

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

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

C#
public static bool IsKnown(string name)
Parameters:namestring

The name of a connector.

Returns:

bool