ClassShapeUtilities
Utility class for shapes.
Definition
Namespace:Telerik.Windows.Diagrams.Core
Assembly:Telerik.Windows.Diagrams.Core.dll
Syntax:
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.
Declaration
public static Rect GetConnectorsBounds(IShape shape)
Parameters
shape
The shape.
Returns
Rect
The enclosing bounds.
GetNearestConnector(IEnumerable<IShape>, Point, double)
Gets the nearest connector.
Declaration
public static IConnector GetNearestConnector(IEnumerable<IShape> shapes, Point point, double delta)
Parameters
shapes
The shapes.
point
Point
The point.
delta
The delta.
Returns
GetNearestConnector(IShape, Point)
Gets the closest connector position.
Declaration
public static IConnector GetNearestConnector(IShape shape, Point point)
Parameters
shape
The shape.
point
Point
The point.
Returns
GetNearestConnectors(IConnection, out IConnector, out IConnector)
Gets the nearest connectors for a connection.
Declaration
[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
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
public static IConnector GetNearestFreeConnector(IConnection connection, Point startPoint, IShape shape)
Parameters
connection
startPoint
Point
shape
Returns