skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop
    Web
    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX UI for Silverlight UI for PHP UI for JSP
    Mobile
    UI for .NET MAUI UI for Xamarin
    Document Management
    Telerik Document Processing
    Desktop
    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF UI for UWP
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    CMS
    Sitefinity
    UI/UX Tools
    ThemeBuilder Design System Kit
    Debugging
    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Jam FiddlerCap FiddlerCore
    Extended Reality
    UI for Unity XR
    Free Tools
    JustAssembly JustDecompile VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Search
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Interface IDiagramItem

Defines an element which participates in the diagramming mechanics.

Inherited Members
ISerializable.Serialize()
ISerializable.Deserialize(SerializationInfo)
ISupportMouseOver.IsMouseOver
IPropertyChanged.PropertyChanged
IGroupable.ParentGroup
IGroupable.ParentGroupChanged
ISupportManipulation.IsRotationEnabled
ISupportManipulation.IsResizingEnabled
ISupportManipulation.IsDraggingEnabled
ISupportManipulation.IsConnectorsManipulationEnabled
ISupportManipulation.IsManipulationAdornerVisible
ISupportManipulation.AllowDelete
ISupportManipulation.AllowCut
ISupportManipulation.AllowCopy
ISupportManipulation.AllowPaste
ISupportVirtualization.VirtualizationState
IContainerChild.ParentContainer
ICollapsible.IsCollapsed
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 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
System.Boolean

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
System.Boolean

True if enabled; otherwise, false.

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

True if selected; otherwise, false.

See Also
ISelectionService<T>
SelectionService

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

True if this instance is visible; otherwise, false.

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.

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
CommonExtensions.GetActualBounds(IDiagramItem, Boolean)
GroupExtensions.GetSupremumGroup(IGroupable, IDiagramItem)
SerializationExtensions.GetSerializationInfo(IDiagramItem)
SerializationExtensions.SetFromSerializationInfo(IDiagramItem, SerializationInfo)
EnumerableExtensions.ToEnumerable<T>(T)

See Also

IConnection
IShape
IConnector

Was this article helpful?

Tell us how we can improve this article

Skip
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.