IDiagramItem
Defines an element which participates in the diagramming mechanics.
Definition
Namespace:Telerik.Windows.Diagrams.Core
Assembly:Telerik.WinControls.RadDiagram.dll
Syntax:
public interface IDiagramItem : ISerializable, ISupportMouseOver, IPropertyChanged, IGroupable, ISupportManipulation, ISupportVirtualization, IContainerChild, ICollapsible
Derived Classes:
Inherited Members
Properties
Gets or sets the content.
object Content { get; set; }
The property matches the ContentControl.Content property.
Gets the unique identifier of this entity.
string Id { get; }
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.
bool IsDynamic { get; set; }
If true then this item will not be serialized as part of the diagram.
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.
bool IsEditable { get; set; }
True if editing is enabled; otherwise, false.
Note that the similar higher-level "IGraph.IsEditable" can potentially overrule this setting.
Gets or sets whether the diagram entity is enabled.
bool IsEnabled { get; set; }
True if enabled; otherwise, false.
Gets or sets whether the instance in is edit mode.
bool IsInEditMode { get; set; }
Gets or sets whether the diagram entity is selected.
bool IsSelected { get; set; }
True if selected; otherwise, false.
Gets or sets the unique name of this entity.
string Name { get; set; }
A name for this entity.
This property matches the "FrameworkElement.Name" property.
Gets or sets the center point of any possible render transform declared by System.Windows.UIElement.RenderTransform, relative to the bounds of the element.
Point RenderTransformOrigin { get; set; }
The render transform origin.
Gets or sets a value indicating whether this instance is visible.
ElementVisibility Visibility { get; set; }
True if this instance is visible; otherwise, false.
Methods
Initializes the specified service locator and parent graph.
void Initialize(IGraphServiceLocator serviceLocator, IGraphInternal graph)
The service locator.
graphIGraphInternalThe diagram control.