ShapeUtilities
Class
Utility class for shapes.
Definition
Namespace:Telerik.Windows.Diagrams.Core
Assembly:Telerik.Windows.Diagrams.Core.dll
Syntax:
C#
public static class ShapeUtilities
Inheritance: objectShapeUtilities
Methods
Gets the connectors' enclosing bounds.
C#
public static Rect GetConnectorsBounds(IShape shape)
The shape.
Returns:Rect
The enclosing bounds.
Gets the nearest connector.
C#
public static IConnector GetNearestConnector(IEnumerable<IShape> shapes, Point point, double delta)
The shapes.
pointPointThe point.
deltadoubleThe delta.
Returns:Gets the closest connector position.
C#
public static IConnector GetNearestConnector(IShape shape, Point point)
The shape.
pointPointThe point.
Returns:Gets the nearest connectors for a connection.
C#
public static void GetNearestConnectors(IConnection connection, out IConnector startConnector, out IConnector endConnector)
The connection.
startConnectorIConnectorThe start connector.
endConnectorIConnectorThe end connector.
Gets the closest connector position which is not already used.
C#
public static IConnector GetNearestFreeConnector(IConnection connection, Point startPoint, IShape shape)