ClassIGraphExtensions
Represents graph extensions.
Definition
Namespace:Telerik.Windows.Diagrams.Core
Assembly:Telerik.Windows.Diagrams.Core.dll
Syntax:
public static class IGraphExtensions
Inheritance: objectIGraphExtensions
Methods
CalculateEnclosingBounds(IGraph, bool, bool)
Calculates the enclosing bounds.
Declaration
public static Rect CalculateEnclosingBounds(this IGraph graph, bool includeShapes = true, bool includeConnections = true)
Parameters
graph
The graph.
includeShapes
If set to true shapes will be included in the bounds calculation.
includeConnections
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
public static IEnumerable<IDiagramItem> DiagramItems(this IGraph graph)
Parameters
graph
Returns
GetConnectionsForShape(IGraph, IShape)
Gets the connections for shape.
Declaration
public static IEnumerable<IConnection> GetConnectionsForShape(this IGraph graph, IShape shape)
Parameters
graph
The diagram.
shape
The shape.
Returns
GetConnectionsForShapeRecursively(IGraph, IShape)
Gets the connections for shape.
Declaration
public static IEnumerable<IConnection> GetConnectionsForShapeRecursively(this IGraph graph, IShape shape)
Parameters
graph
The diagram.
shape
The shape.
Returns
GetConnectionsInSubGraph(IGraph, IEnumerable<IShape>)
Gets the connections in sub graph - collection of shapes.
Declaration
public static IEnumerable<IConnection> GetConnectionsInSubGraph(this IGraph graph, IEnumerable<IShape> shapes)
Parameters
graph
The graph.
shapes
The shapes.
Returns
GetIncomingConnectionsForShape(IGraph, IShape)
Gets the incoming connections for shape.
Declaration
public static IEnumerable<IConnection> GetIncomingConnectionsForShape(this IGraph graph, IShape shape)
Parameters
graph
The diagram.
shape
The shape.
Returns
GetOutgoingConnectionsForShape(IGraph, IShape)
Gets the outgoing connections for shape.
Declaration
public static IEnumerable<IConnection> GetOutgoingConnectionsForShape(this IGraph graph, IShape shape)
Parameters
graph
The diagram.
shape
The shape.
Returns