InterfaceIDiagramItem
Defines an element which participates in the diagramming mechanics.
Definition
Namespace:Telerik.Windows.Diagrams.Core
Assembly:Telerik.Windows.Diagrams.Core.dll
Syntax:
public interface IDiagramItem : ISerializable, ISupportMouseOver, IPropertyChanged, IGroupable, ISupportManipulation, ISupportVirtualization, IContainerChild, ICollapsible
Inherited Members
Properties
Bounds
Gets the bounds.
Declaration
Rect Bounds { get; }
Property Value
Rect
The bounds.
Content
Gets or sets the content.
Declaration
object Content { get; set; }
Property Value
Remarks
The property matches the property.
Id
Gets the unique identifier of this entity.
IsDynamic
Gets or sets whether this item is dynamically generated.
Declaration
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.
IsEditable
Gets or sets a value indicating whether editing is enabled on this item.
Declaration
bool IsEditable { get; set; }
Property Value
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
bool IsEnabled { get; set; }
Property Value
True if enabled; otherwise, false.
IsInEditMode
Gets or sets whether the instance in is edit mode.
IsSelected
Gets or sets whether the diagram entity is selected.
Declaration
bool IsSelected { get; set; }
Property Value
True if selected; otherwise, false.
Name
Gets or sets the unique name of this entity.
Declaration
string Name { get; set; }
Property Value
A name for this entity.
Remarks
This property matches the property.
Position
Gets or sets the position.
Declaration
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
Point RenderTransformOrigin { get; set; }
Property Value
Point
The render transform origin.
Visibility
Gets or sets a value indicating whether this instance is visible.
Declaration
Visibility Visibility { get; set; }
Property Value
Visibility
True if this instance is visible; otherwise, false.
Methods
Initialize(IGraphServiceLocator, IGraphInternal)
Initializes the specified service locator and parent graph.
Declaration
void Initialize(IGraphServiceLocator serviceLocator, IGraphInternal graph)
Parameters
serviceLocator
The service locator.
graph
The diagram control.