New to Telerik UI for WinFormsStart a free 30-day trial

The internal diagram control API.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.WinControls.RadDiagram.dll

Syntax:

C#
public interface IGraphInternal : IGraph, ISerializable, ISupportManipulation

Derived Classes: RadDiagramElement

Inherited Members IGraph.AddConnection(IShape, IShape, bool)IGraph.AddConnection(IConnection, bool)IGraph.AddConnection(Point, Point, bool)IGraph.AddShape(IShape, Point?, bool)IGraph.RemoveShape(IShape, bool)IGraph.RemoveConnection(IConnection, bool)IGraph.Group(string, params IGroupable[])IGraph.Group(string, bool, params IGroupable[])IGraph.Ungroup(params IGroup[])IGraph.Ungroup(bool, params IGroup[])IGraph.BeginBatchTransformation()IGraph.CommitBatchTransformation(DiagramLayoutState, DiagramLayoutState, bool, bool, LayoutType, object)IGraph.GraphSourceIGraph.ShapesIGraph.ConnectionsIGraph.GroupsIGraph.MetadataIGraph.CursorIGraph.IsVirtualizingIGraph.IgnoreLinkDirectionIGraph.IsMouseCapturedIGraph.PositionIGraph.ViewportIGraph.ZoomIGraph.SelectionModeIGraph.IsBackgroundSurfaceVisibleIGraph.SnapXIGraph.SnapYIGraph.IsSnapToGridEnabledIGraph.IsSnapToItemsEnabledIGraph.IsEditableIGraph.RectSelectionModeIGraph.IsPanEnabledIGraph.IsZoomEnabledIGraph.ItemsISerializable.Serialize()ISerializable.Deserialize(SerializationInfo)ISupportManipulation.IsRotationEnabledISupportManipulation.IsResizingEnabledISupportManipulation.IsDraggingEnabledISupportManipulation.IsConnectorsManipulationEnabledISupportManipulation.IsManipulationAdornerVisibleISupportManipulation.AllowDeleteISupportManipulation.AllowCutISupportManipulation.AllowCopyISupportManipulation.AllowPaste...

Properties

Gets the active connector.

C#
IConnector ActiveConnector { get; }

Gets the connection bridge type.

C#
BridgeType ConnectionBridge { get; set; }

Gets or sets whether the corners of the (polyline) connection are rounded.

C#
bool ConnectionRoundedCorners { get; set; }
Remarks:

This property has only an effect when the ConnectionType is set to Polyline.

C#
DiagramDataLayer DataLayer { get; }

Gets or sets whether this is an internal items change.

C#
bool IsInternalItemsChange { get; set; }

Gets whether the Spline and Polyline connections will be automatically routed.

C#
bool RouteConnections { get; set; }
Remarks:

Setting this property has no effect on other connection types.

Gets the segmentation.

C#
ISegmentationService Segmentation { get; }

Gets the service locator.

C#
IServiceLocator ServiceLocator { get; }

Methods

Gets the adorner part resolver.

C#
IAdornerPartResolver GetAdornerPartResolver()
Returns:

IAdornerPartResolver

Gets the diagram container for the given item.

C#
IDiagramItem GetContainerFromItem(object item)
Parameters:itemobject

The item.

Returns:

IDiagramItem

Gets the diagram item from the given container.

C#
object GetItemFromContainer(IDiagramItem container)
Parameters:containerIDiagramItem

The container.

Returns:

object

Gets the serialization info.

C#
SerializationInfo GetSerializationInfo()
Returns:

SerializationInfo

Returns all intersecting connections that are below or above the given one.

C#
IList<IConnection> IntersectingConnections(IConnection connection, Rect? bounds = null)
Parameters:connectionIConnection

The connection.

boundsRect?

The bounds. If null the connection's Bounds are used.

Returns:

IList<IConnection>

Publishes a diagram event to the diagram control.

C#
bool PublishDiagramEvent(DiagramEvent diagramEvent, object args)
Parameters:diagramEventDiagramEvent

The diagram event.

argsobject

The event argument.

Returns:

bool

Returns true if the event has been handled.

Raises the items changed event.

C#
void RaiseItemsChangedEvent(NotifyCollectionChangedAction action, IEnumerable newItems = null, IEnumerable oldItems = null)
Parameters:actionNotifyCollectionChangedActionnewItemsIEnumerableoldItemsIEnumerable

Raises the items changing event.

C#
bool RaiseItemsChangingEvent(NotifyCollectionChangedAction action, IEnumerable newItems = null, IEnumerable oldItems = null)
Parameters:actionNotifyCollectionChangedActionnewItemsIEnumerableoldItemsIEnumerableReturns:

bool

Transforms the point to diagram's coordinate system..

C#
Point TransformPoint(Point point)
Parameters:pointPoint

The point.

Returns:

Point

Updates the adorners (manipulation adorner, group adorner, connector adorner...).

C#
void UpdateAdorners()

Updates the rectangular selection (marching ants selector).

C#
void UpdateRectSelection(Rect selectionRect)
Parameters:selectionRectRect

The rectangle which represents the current selection area.

Updates the scrollbars.

C#
void UpdateScrollbars()

Extension Methods