ClassShapeUtilities
Class
Utility class for shapes.
Definition
Namespace:Telerik.Windows.Diagrams.Core
Assembly:Telerik.WinControls.RadDiagram.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.
GetConnectorsBounds(IShape)
Gets the connectors' 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
The point.
delta
The delta.
Returns
GetNearestConnector(IShape, Point)
Gets the closest connector position.
Declaration
cs-api-definition
public static IConnector GetNearestConnector(IShape shape, Point point)
Parameters
shape
The shape.
point
The point.
Returns
GetNearestConnectors(IConnection, out IConnector, out IConnector)
Gets the nearest connectors for a connection.
Declaration
cs-api-definition
public static void GetNearestConnectors(IConnection connection, out IConnector startConnector, out IConnector endConnector)
Parameters
connection
The connection.
startConnector
The start connector.
endConnector
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
startPoint
shape
Returns