Class
ShapeUtilities

Utility class for shapes.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.Windows.Diagrams.Core.dll

Syntax:

cs-api-definition
public static class ShapeUtilities

Inheritance: objectShapeUtilities

Methods

GetConnectorPoint(string, IShape)

Gets the absolute position of the connector in the given shape.

Declaration

cs-api-definition
public static Point GetConnectorPoint(string connectorName, IShape shape)

Parameters

connectorName

string

The connector's name.

shape

IShape

The shape.

Returns

Point

GetConnectorsBounds(IShape)

Gets the connectors' enclosing bounds.

Declaration

cs-api-definition
public static Rect GetConnectorsBounds(IShape shape)

Parameters

shape

IShape

The shape.

Returns

Rect

The enclosing bounds.

GetNearestConnector(IEnumerable<IShape>, Point, double)

Gets the nearest connector.

Declaration

cs-api-definition
public static IConnector GetNearestConnector(IEnumerable<IShape> shapes, Point point, double delta)

Parameters

shapes

IEnumerable<IShape>

The shapes.

point

Point

The point.

delta

double

The delta.

Returns

IConnector

GetNearestConnector(IShape, Point)

Gets the closest connector position.

Declaration

cs-api-definition
public static IConnector GetNearestConnector(IShape shape, Point point)

Parameters

shape

IShape

The shape.

point

Point

The point.

Returns

IConnector

GetNearestConnectors(IConnection, out IConnector, out IConnector)

Gets the nearest connectors for a connection.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Design", "CA1021:AvoidOutParameters", MessageId = "2#")]
[SuppressMessage("Microsoft.Design", "CA1021:AvoidOutParameters", MessageId = "1#")]
public static void GetNearestConnectors(IConnection connection, out IConnector startConnector, out IConnector endConnector)

Parameters

connection

IConnection

The connection.

startConnector

IConnector

The start connector.

endConnector

IConnector

The end connector.

GetNearestFreeConnector(IConnection, Point, IShape)

Gets the closest connector position which is not already used.

Declaration

cs-api-definition
public static IConnector GetNearestFreeConnector(IConnection connection, Point startPoint, IShape shape)

Parameters

connection

IConnection

startPoint

Point

shape

IShape

Returns

IConnector