Interface
IGraphInternal

The internal diagram control API.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.Windows.Diagrams.Core.dll

Syntax:

cs-api-definition
public interface IGraphInternal : IGraph, ISerializable, ISupportManipulation

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

ActiveConnector

Gets the active connector.

Declaration

cs-api-definition
IConnector ActiveConnector { get; }

Property Value

IConnector

ConnectionBridge

Gets the connection bridge type.

Declaration

cs-api-definition
BridgeType ConnectionBridge { get; set; }

Property Value

BridgeType

ConnectionRoundedCorners

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

Declaration

cs-api-definition
bool ConnectionRoundedCorners { get; set; }

Property Value

bool

Remarks

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

IsInternalItemsChange

Gets or sets whether this is an internal items change.

Declaration

cs-api-definition
bool IsInternalItemsChange { get; set; }

Property Value

bool

RouteConnections

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

Declaration

cs-api-definition
bool RouteConnections { get; set; }

Property Value

bool

Remarks

Setting this property has no effect on other connection types.

Segmentation

Gets the segmentation.

Declaration

cs-api-definition
ISegmentationService Segmentation { get; }

Property Value

ISegmentationService

ServiceLocator

Gets the service locator.

Declaration

cs-api-definition
IServiceLocator ServiceLocator { get; }

Property Value

IServiceLocator

Methods

GetAdornerPartResolver()

Gets the adorner part resolver.

Declaration

cs-api-definition
IAdornerPartResolver GetAdornerPartResolver()

Returns

IAdornerPartResolver

GetContainerFromItem(object)

Gets the diagram container for the given item.

Declaration

cs-api-definition
IDiagramItem GetContainerFromItem(object item)

Parameters

item

object

The item.

Returns

IDiagramItem

GetItemFromContainer(IDiagramItem)

Gets the diagram item from the given container.

Declaration

cs-api-definition
object GetItemFromContainer(IDiagramItem container)

Parameters

container

IDiagramItem

The container.

Returns

object

GetSerializationInfo()

Gets the serialization info.

Declaration

cs-api-definition
SerializationInfo GetSerializationInfo()

Returns

SerializationInfo

IntersectingConnections(IConnection, Rect?)

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

Declaration

cs-api-definition
IList<IConnection> IntersectingConnections(IConnection connection, Rect? bounds = null)

Parameters

connection

IConnection

The connection.

bounds

Rect?

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

Returns

IList<IConnection>

PublishDiagramEvent(DiagramEvent, object)

Publishes a diagram event to the diagram control.

Declaration

cs-api-definition
bool PublishDiagramEvent(DiagramEvent diagramEvent, object args)

Parameters

diagramEvent

DiagramEvent

The diagram event.

args

object

The event argument.

Returns

bool

Returns true if the event has been handled.

RaiseItemsChangingEvent(NotifyCollectionChangedAction, IEnumerable, IEnumerable)

Raises the items changing event.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Design", "CA1030:UseEventsWhereApproapriate")]
void RaiseItemsChangingEvent(NotifyCollectionChangedAction action, IEnumerable newItems = null, IEnumerable oldItems = null)

Parameters

action

NotifyCollectionChangedAction

newItems

IEnumerable

oldItems

IEnumerable

TransformPoint(Point)

Transforms the point to diagram's coordinate system..

Declaration

cs-api-definition
Point TransformPoint(Point point)

Parameters

point

Point

The point.

Returns

Point

UpdateAdorners()

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

Declaration

cs-api-definition
void UpdateAdorners()

UpdateRectSelection(Rect)

Updates the rectangular selection (marching ants selector).

Declaration

cs-api-definition
void UpdateRectSelection(Rect selectionRect)

Parameters

selectionRect

Rect

The rectangle which represents the current selection area.

UpdateScrollbars()

Updates the scrollbars.

Declaration

cs-api-definition
void UpdateScrollbars()

Extension Methods