IGraphExtensions
Class
Represents graph extensions.
Definition
Namespace:Telerik.Windows.Diagrams.Core
Assembly:Telerik.Windows.Diagrams.Core.dll
Syntax:
C#
public static class IGraphExtensions
Inheritance: objectIGraphExtensions
Methods
Calculates the enclosing bounds.
C#
public static Rect CalculateEnclosingBounds(this IGraph graph, bool includeShapes = true, bool includeConnections = true)
The graph.
includeShapesboolIf set to true shapes will be included in the bounds calculation.
If set to true connections will be included in the bounds calculation.
Rect
Rectangle enclosing all items.
Gets all graph items - shapes and connections.
C#
public static IEnumerable<IDiagramItem> DiagramItems(this IGraph graph)
Gets the connections in sub graph - collection of shapes.
C#
public static IEnumerable<IConnection> GetConnectionsInSubGraph(this IGraph graph, IEnumerable<IShape> shapes)
The graph.
shapesIEnumerable<IShape>The shapes.
Returns: