Class
IGraphExtensions

Represents graph extensions.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.Windows.Diagrams.Core.dll

Syntax:

cs-api-definition
public static class IGraphExtensions

Inheritance: objectIGraphExtensions

Methods

CalculateEnclosingBounds(IGraph, bool, bool)

Calculates the enclosing bounds.

Declaration

cs-api-definition
public static Rect CalculateEnclosingBounds(this IGraph graph, bool includeShapes = true, bool includeConnections = true)

Parameters

graph

IGraph

The graph.

includeShapes

bool

If set to true shapes will be included in the bounds calculation.

includeConnections

bool

If set to true connections will be included in the bounds calculation.

Returns

Rect

Rectangle enclosing all items.

DiagramItems(IGraph)

Gets all graph items - shapes and connections.

Declaration

cs-api-definition
public static IEnumerable<IDiagramItem> DiagramItems(this IGraph graph)

Parameters

graph

IGraph

Returns

IEnumerable<IDiagramItem>

GetConnectionsForShape(IGraph, IShape)

Gets the connections for shape.

Declaration

cs-api-definition
public static IEnumerable<IConnection> GetConnectionsForShape(this IGraph graph, IShape shape)

Parameters

graph

IGraph

The diagram.

shape

IShape

The shape.

Returns

IEnumerable<IConnection>

GetConnectionsForShapeRecursively(IGraph, IShape)

Gets the connections for shape.

Declaration

cs-api-definition
public static IEnumerable<IConnection> GetConnectionsForShapeRecursively(this IGraph graph, IShape shape)

Parameters

graph

IGraph

The diagram.

shape

IShape

The shape.

Returns

IEnumerable<IConnection>

GetConnectionsInSubGraph(IGraph, IEnumerable<IShape>)

Gets the connections in sub graph - collection of shapes.

Declaration

cs-api-definition
public static IEnumerable<IConnection> GetConnectionsInSubGraph(this IGraph graph, IEnumerable<IShape> shapes)

Parameters

graph

IGraph

The graph.

shapes

IEnumerable<IShape>

The shapes.

Returns

IEnumerable<IConnection>

GetIncomingConnectionsForShape(IGraph, IShape)

Gets the incoming connections for shape.

Declaration

cs-api-definition
public static IEnumerable<IConnection> GetIncomingConnectionsForShape(this IGraph graph, IShape shape)

Parameters

graph

IGraph

The diagram.

shape

IShape

The shape.

Returns

IEnumerable<IConnection>

GetOutgoingConnectionsForShape(IGraph, IShape)

Gets the outgoing connections for shape.

Declaration

cs-api-definition
public static IEnumerable<IConnection> GetOutgoingConnectionsForShape(this IGraph graph, IShape shape)

Parameters

graph

IGraph

The diagram.

shape

IShape

The shape.

Returns

IEnumerable<IConnection>