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

Represents an observable graph source.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.Windows.Diagrams.Core.dll

Syntax:

C#
public interface IObservableGraphSource : IGraphSource

Derived Classes: ObservableGraphSourceBase<TNode, TLink>SerializableGraphSourceBase<TNode, TLink>

Inherited Members IGraphSource.LinksIGraphSource.Items

Methods

Adds a link in the Links collection.

C#
void AddLink(ILink link)
Parameters:linkILink

The link.

Adds a node in the Items collection.

C#
void AddNode(object node)
Parameters:nodeobject

The node.

Creates a link based on the associated source and target nodes.

C#
ILink CreateLink(object source, object target)
Parameters:sourceobject

The source node.

targetobject

The target node.

Returns:

ILink

Returns the created link.

Creates a node based on an associated shape.

C#
object CreateNode(IShape shape)
Parameters:shapeIShape

The associated shape.

Returns:

object

Returns the created node.

Removes a link from the Links collection.

C#
bool RemoveLink(ILink link)
Parameters:linkILink

The link.

Returns:

bool

Removes a node from the Items collection.

C#
bool RemoveNode(object node)
Parameters:nodeobject

The node.

Returns:

bool