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

IDiagramItem

Interface

Defines an element which participates in the diagramming mechanics.

Definition

Properties

Gets the bounds.

C#
Rect Bounds { get; }
Property Value:

The bounds.

Gets or sets the content.

C#
object Content { get; set; }
Remarks:

The property matches the ContentControl.Content property.

Gets the unique identifier of this entity.

C#
string Id { get; }
Remarks:

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

Gets or sets whether this item is dynamically generated.

C#
bool IsDynamic { get; set; }
Property Value:

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.

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

C#
bool IsEditable { get; set; }
Property Value:

True if editing is enabled; otherwise, false.

Remarks:

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

Gets or sets whether the diagram entity is enabled.

C#
bool IsEnabled { get; set; }
Property Value:

True if enabled; otherwise, false.

Gets or sets whether the instance in is edit mode.

C#
bool IsInEditMode { get; set; }

Gets or sets whether the diagram entity is selected.

C#
bool IsSelected { get; set; }
Property Value:

True if selected; otherwise, false.

Gets or sets the unique name of this entity.

C#
string Name { get; set; }
Property Value:

A name for this entity.

Remarks:

This property matches the "FrameworkElement.Name" property.

Gets or sets the position.

C#
Point Position { get; set; }

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

C#
Point RenderTransformOrigin { get; set; }
Property Value:

The render transform origin.

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

C#
ElementVisibility Visibility { get; set; }
Property Value:

True if this instance is visible; otherwise, false.

Gets or sets the ZIndex of this instance.

C#
int ZIndex { get; set; }

Methods

Initializes the specified service locator and parent graph.

C#
void Initialize(IGraphServiceLocator serviceLocator, IGraphInternal graph)
Parameters:serviceLocatorIGraphServiceLocator

The service locator.

graphIGraphInternal

The diagram control.

Extension Methods