Interface IDiagramItem
Defines an element which participates in the diagramming mechanics.
Inherited Members
Namespace: Telerik.Windows.Diagrams.Core
Assembly: Telerik.Windows.Diagrams.Core.dll
Syntax
public interface IDiagramItem : ISerializable, ISupportMouseOver, IPropertyChanged, IGroupable, ISupportManipulation, ISupportVirtualization, IContainerChild, ICollapsible
Properties
Bounds
Gets the bounds.
Declaration
Rect Bounds { get; }
Property Value
System.Windows.Rect
The bounds. |
Content
Gets or sets the content.
Declaration
object Content { get; set; }
Property Value
System.Object
|
Remarks
The property matches the System.Windows.Controls.ContentControl.Content property.
Id
Gets the unique identifier of this entity.
Declaration
string Id { get; }
Property Value
System.String
|
Remarks
The RadDiagram framework will internally generate a System.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
bool IsDynamic { get; set; }
Property Value
System.Boolean
If |
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
bool IsEditable { get; set; }
Property Value
System.Boolean
|
Remarks
Note that the similar higher-level IsEditable can potentially overrule this setting.
IsEnabled
Gets or sets whether the diagram entity is enabled.
Declaration
bool IsEnabled { get; set; }
Property Value
System.Boolean
|
IsInEditMode
Gets or sets whether the instance in is edit mode.
Declaration
bool IsInEditMode { get; set; }
Property Value
System.Boolean
|
IsSelected
Gets or sets whether the diagram entity is selected.
Declaration
bool IsSelected { get; set; }
Property Value
System.Boolean
|
See Also
Name
Gets or sets the unique name of this entity.
Declaration
string Name { get; set; }
Property Value
System.String
A name for this entity. |
Remarks
This property matches the System.Windows.FrameworkElement.Name property.
Position
Gets or sets the position.
Declaration
Point Position { get; set; }
Property Value
System.Windows.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
Point RenderTransformOrigin { get; set; }
Property Value
System.Windows.Point
The render transform origin. |
Visibility
Gets or sets a value indicating whether this instance is visible.
Declaration
Visibility Visibility { get; set; }
Property Value
System.Windows.Visibility
|
ZIndex
Gets or sets the ZIndex of this instance.
Declaration
int ZIndex { get; set; }
Property Value
System.Int32
|
Methods
Initialize(IGraphServiceLocator, IGraphInternal)
Initializes the specified service locator and parent graph.
Declaration
void Initialize(IGraphServiceLocator serviceLocator, IGraphInternal graph)
Parameters
IGraphServiceLocator
serviceLocator
The service locator. |
IGraphInternal
graph
The diagram control. |