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

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 absolute position of the connector in the given shape.

C#
public static Point GetConnectorPoint(string connectorName, IShape shape)
Parameters:connectorNamestring

The connector's name.

shapeIShape

The shape.

Returns:

Point

Gets the connectors' enclosing bounds.

C#
public static Rect GetConnectorsBounds(IShape shape)
Parameters:shapeIShape

The shape.

Returns:

Rect

The enclosing bounds.

Gets the nearest connector.

C#
public static IConnector GetNearestConnector(IEnumerable<IShape> shapes, Point point, double delta)
Parameters:shapesIEnumerable<IShape>

The shapes.

pointPoint

The point.

deltadouble

The delta.

Returns:

IConnector

Gets the closest connector position.

C#
public static IConnector GetNearestConnector(IShape shape, Point point)
Parameters:shapeIShape

The shape.

pointPoint

The point.

Returns:

IConnector

Gets the nearest connectors for a connection.

C#
public static void GetNearestConnectors(IConnection connection, out IConnector startConnector, out IConnector endConnector)
Parameters:connectionIConnection

The connection.

startConnectorIConnector

The start connector.

endConnectorIConnector

The end connector.

Gets the closest connector position which is not already used.

C#
public static IConnector GetNearestFreeConnector(IConnection connection, Point startPoint, IShape shape)
Parameters:connectionIConnectionstartPointPointshapeIShapeReturns:

IConnector