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