Click or drag to resize
IGraph Interface
Defines the diagramming control's API.

Namespace: Telerik.Windows.Diagrams.Core
Assembly: Telerik.Windows.Diagrams.Core (in Telerik.Windows.Diagrams.Core.dll) Version: 2017.2.614.40 (2017.2.614.40)
Syntax
public interface IGraph : ISerializable, ISupportManipulation

The IGraph type exposes the following members.

Methods
  NameDescription
Public methodAddConnection(IConnection, Boolean)
Adds a new connection to the diagram.
Public methodAddConnection(Point, Point, Boolean)
Adds a floating connection to the diagram.
Public methodAddConnection(IShape, IShape, Boolean)
Adds a connection to the diagram.
Public methodAddShape
Adds a new shape to the diagram.
Public methodBeginBatchTransformation
Begins a batch transformation and signals the undo-redo stack that a batch of transformation should be considered as one, i.e. a composite change.
Public methodCommitBatchTransformation
Commits the batch transformation and ends the composite undo redo change.
Public methodDeserialize
Deserializes the specified info.
(Inherited from ISerializable.)
Public methodGroup(String, IGroupable)
Groups the given items in a new group with the specified name.
Public methodGroup(String, Boolean, IGroupable)
Groups the given items in a new group with the specified name.
Public methodRemoveConnection
Removes a connection from the diagram.
Public methodRemoveShape
Removes a shape from the diagram.
Public methodSerialize
Serializes this instance.
(Inherited from ISerializable.)
Public methodUngroup(IGroup)
Ungroups the specified groups.
Public methodUngroup(Boolean, IGroup)
Ungroups the specified groups.
Top
Extension Methods
  NameDescription
Public Extension MethodCalculateEnclosingBounds
Calculates the enclosing bounds.
(Defined by IGraphExtensions.)
Public Extension MethodDiagramItems
Gets all graph items - shapes and connections.
(Defined by IGraphExtensions.)
Public Extension MethodGetConnectionsForShape
Gets the connections for shape.
(Defined by IGraphExtensions.)
Public Extension MethodGetConnectionsForShapeRecursively
Gets the connections for shape.
(Defined by IGraphExtensions.)
Public Extension MethodGetConnectionsInSubGraph
Gets the connections in sub graph - collection of shapes.
(Defined by IGraphExtensions.)
Public Extension MethodGetIncomingConnectionsForShape
Gets the incoming connections for shape.
(Defined by IGraphExtensions.)
Public Extension MethodGetOutgoingConnectionsForShape
Gets the outgoing connections for shape.
(Defined by IGraphExtensions.)
Top
Properties
  NameDescription
Public propertyAllowCopy
Gets or sets a value indicating whether copying is allowed.
(Inherited from ISupportManipulation.)
Public propertyAllowCut
Gets or sets a value indicating whether cutting is allowed.
(Inherited from ISupportManipulation.)
Public propertyAllowDelete
Gets or sets a value indicating whether deleting is allowed.
(Inherited from ISupportManipulation.)
Public propertyAllowPaste
Gets or sets a value indicating whether pasting is allowed.
(Inherited from ISupportManipulation.)
Public propertyConnections
Gets the connections in the current diagram.
Public propertyCursor
Gets or sets the current cursor.
Public propertyGraphSource
Gets or sets the MVVM source of the diagram.
Public propertyGroups
Gets the groups in the current diagram.
Public propertyIgnoreLinkDirection
Gets or sets a value indicating whether the underlying graph structure is a directional graph (aka digraph).
Public propertyIsBackgroundSurfaceVisible
Gets or sets a value indicating whether the background visual is visible.
Public propertyIsConnectorsManipulationEnabled
Gets or sets a value indicating whether manipulation on the connectors is enabled.
(Inherited from ISupportManipulation.)
Public propertyIsDraggingEnabled
Gets or sets a value indicating whether dragging is enabled.
(Inherited from ISupportManipulation.)
Public propertyIsEditable
Gets or sets a value indicating whether editing is enabled.
Public propertyIsManipulationAdornerVisible
Gets or sets a value indicating whether the manipulation adorner is visible.
(Inherited from ISupportManipulation.)
Public propertyIsMouseCaptured
Gets or sets whether the control has currently captured the mouse pointer.
Public propertyIsPanEnabled
Gets or sets a value indicating whether panning is enabled.
Public propertyIsResizingEnabled
Gets or sets a value indicating whether this instance is resizing enabled.
(Inherited from ISupportManipulation.)
Public propertyIsRotationEnabled
Gets or sets a value indicating whether this instance is rotation enabled.
(Inherited from ISupportManipulation.)
Public propertyIsSnapToGridEnabled
Gets or sets a value indicating whether snapping is enabled.
Public propertyIsSnapToItemsEnabled
Gets or sets a value indicating whether snapping of selected item(s) to the other items in the view port is enabled or not.
Public propertyIsVirtualizing
Gets a value indicating whether virtualization is switched on.
Public propertyIsZoomEnabled
Gets or sets a value indicating whether zooming is enabled.
Public propertyItems
Gets all (shapes and connections) the diagram items.
Public propertyMetadata
Gets the metadata of the diagram.
Public propertyPosition
Gets or sets the panning position.
Public propertyRectSelectionMode
Gets or sets whether items are selected if they are fully or partially contained in the selection rectangle.
Public propertySelectionMode
Gets or sets the selection mode, i.e. how elements are being selected in responds to the overlap of a shape's bounds and the selection rectangle.
Public propertyShapes
Gets the shapes of the current diagram.
Public propertySnapX
Gets or sets the horizontal snap value.
Public propertySnapY
Gets or sets the vertical snap value.
Public propertyViewport
Gets the viewport rectangle.
Public propertyZoom
Gets or sets the zoom level.
Top
See Also