Class IGraphExtensions
Represents graph extensions.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Diagrams.Core
Assembly: Telerik.Windows.Diagrams.Core.dll
Syntax
public static class IGraphExtensions
Methods
CalculateEnclosingBounds(IGraph, Boolean, Boolean)
Calculates the enclosing bounds.
Declaration
public static Rect CalculateEnclosingBounds(this IGraph graph, bool includeShapes = true, bool includeConnections = true)
Parameters
IGraph
graph
The graph. |
System.Boolean
includeShapes
If set to |
System.Boolean
includeConnections
If set to |
Returns
System.Windows.Rect
Rectangle enclosing all items. |
DiagramItems(IGraph)
Gets all graph items - shapes and connections.
Declaration
public static IEnumerable<IDiagramItem> DiagramItems(this IGraph graph)
Parameters
IGraph
graph
|
Returns
System.Collections.Generic.IEnumerable<IDiagramItem>
|
GetConnectionsForShape(IGraph, IShape)
Gets the connections for shape.
Declaration
public static IEnumerable<IConnection> GetConnectionsForShape(this IGraph graph, IShape shape)
Parameters
IGraph
graph
The diagram. |
IShape
shape
The shape. |
Returns
System.Collections.Generic.IEnumerable<IConnection>
|
GetConnectionsForShapeRecursively(IGraph, IShape)
Gets the connections for shape.
Declaration
public static IEnumerable<IConnection> GetConnectionsForShapeRecursively(this IGraph graph, IShape shape)
Parameters
IGraph
graph
The diagram. |
IShape
shape
The shape. |
Returns
System.Collections.Generic.IEnumerable<IConnection>
|
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
IGraph
graph
The graph. |
System.Collections.Generic.IEnumerable<IShape>
shapes
The shapes. |
Returns
System.Collections.Generic.IEnumerable<IConnection>
|
GetIncomingConnectionsForShape(IGraph, IShape)
Gets the incoming connections for shape.
Declaration
public static IEnumerable<IConnection> GetIncomingConnectionsForShape(this IGraph graph, IShape shape)
Parameters
IGraph
graph
The diagram. |
IShape
shape
The shape. |
Returns
System.Collections.Generic.IEnumerable<IConnection>
|
GetOutgoingConnectionsForShape(IGraph, IShape)
Gets the outgoing connections for shape.
Declaration
public static IEnumerable<IConnection> GetOutgoingConnectionsForShape(this IGraph graph, IShape shape)
Parameters
IGraph
graph
The diagram. |
IShape
shape
The shape. |
Returns
System.Collections.Generic.IEnumerable<IConnection>
|