Interface
IDiagramItem

Defines an element which participates in the diagramming mechanics.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.Windows.Diagrams.Core.dll

Syntax:

cs-api-definition
public interface IDiagramItem : ISerializable, ISupportMouseOver, IPropertyChanged, IGroupable, ISupportManipulation, ISupportVirtualization, IContainerChild, ICollapsible

Inherited Members ISerializable.Serialize()ISerializable.Deserialize(SerializationInfo)ISupportMouseOver.IsMouseOverIPropertyChanged.PropertyChangedIGroupable.ParentGroupIGroupable.ParentGroupChangedISupportManipulation.IsRotationEnabledISupportManipulation.IsResizingEnabledISupportManipulation.IsDraggingEnabledISupportManipulation.IsConnectorsManipulationEnabledISupportManipulation.IsManipulationAdornerVisibleISupportManipulation.AllowDeleteISupportManipulation.AllowCutISupportManipulation.AllowCopyISupportManipulation.AllowPasteISupportVirtualization.VirtualizationStateIContainerChild.ParentContainerICollapsible.IsCollapsed

Properties

Bounds

Gets the bounds.

Declaration

cs-api-definition
Rect Bounds { get; }

Property Value

Rect

The bounds.

Content

Gets or sets the content.

Declaration

cs-api-definition
object Content { get; set; }

Property Value

object

Remarks

The property matches the property.

Id

Gets the unique identifier of this entity.

Declaration

cs-api-definition
string Id { get; }

Property Value

string

Remarks

The RadDiagram framework will internally generate a Guid as identifier. The uniqueness is crucial in the context of the (de)serialization.

IsDynamic

Gets or sets whether this item is dynamically generated.

Declaration

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

Property Value

bool

If true then this item will not be serialized as part of the diagram.

Remarks

In some applications or embeddings of RadDiagram (e.g. workflows) there are shapes or connections which are generated as part of some layout or organization. In those cases it doesn't make sense to serialize the elements which are automatically generated as part of the application. By setting this property to true the serialization pipeline will omit the element.

IsEditable

Gets or sets a value indicating whether editing is enabled on this item.

Declaration

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

Property Value

bool

True if editing is enabled; otherwise, false.

Remarks

Note that the similar higher-level IsEditable can potentially overrule this setting.

IsEnabled

Gets or sets whether the diagram entity is enabled.

Declaration

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

Property Value

bool

True if enabled; otherwise, false.

IsInEditMode

Gets or sets whether the instance in is edit mode.

Declaration

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

Property Value

bool

IsSelected

Gets or sets whether the diagram entity is selected.

Declaration

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

Property Value

bool

True if selected; otherwise, false.

Name

Gets or sets the unique name of this entity.

Declaration

cs-api-definition
string Name { get; set; }

Property Value

string

A name for this entity.

Remarks

This property matches the property.

Position

Gets or sets the position.

Declaration

cs-api-definition
Point Position { get; set; }

Property Value

Point

RenderTransformOrigin

Gets or sets the center point of any possible render transform declared by System.Windows.UIElement.RenderTransform, relative to the bounds of the element.

Declaration

cs-api-definition
Point RenderTransformOrigin { get; set; }

Property Value

Point

The render transform origin.

Visibility

Gets or sets a value indicating whether this instance is visible.

Declaration

cs-api-definition
Visibility Visibility { get; set; }

Property Value

Visibility

True if this instance is visible; otherwise, false.

ZIndex

Gets or sets the ZIndex of this instance.

Declaration

cs-api-definition
int ZIndex { get; set; }

Property Value

int

Methods

Initialize(IGraphServiceLocator, IGraphInternal)

Initializes the specified service locator and parent graph.

Declaration

cs-api-definition
void Initialize(IGraphServiceLocator serviceLocator, IGraphInternal graph)

Parameters

serviceLocator

IGraphServiceLocator

The service locator.

graph

IGraphInternal

The diagram control.

Extension Methods