ClassIGraphExtensions
Represents graph extensions.
Definition
Namespace:Telerik.Windows.Diagrams.Core
Assembly:Telerik.WinControls.RadDiagram.dll
Syntax:
public static class IGraphExtensions
Inheritance: objectIGraphExtensions
Methods
CalculateEnclosingBounds(IGraph, bool, bool, bool)
Calculates the enclosing bounds.
Declaration
public static Rect CalculateEnclosingBounds(this IGraph graph, bool includeShapes = true, bool includeConnections = true, bool useControlBoundingRectangle = false)
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.
useControlBoundingRectangle
If set to true ControlBoundingRectangle will be included in the bounds calculation.
Returns
Rectangle enclosing all items.
CalculateEnclosingBoundsWithoutTransform(IGraph)
Calculates the enclosing bounds.
DiagramItems(IGraph)
Gets all graph items - shapes and connections.
Declaration
public static IEnumerable<IDiagramItem> DiagramItems(this IGraph graph)
Parameters
graph
Returns
IEnumerable<IDiagramItem>
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
IEnumerable<IConnection>
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
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
graph
The graph.
shapes
IEnumerable<IShape>
The shapes.
Returns
IEnumerable<IConnection>
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
IEnumerable<IConnection>
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
IEnumerable<IConnection>