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

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Test Studio Dev Edition Telerik JustMock

    CMS

    Sitefinity

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • 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.WinControls.RadDiagram.dll

Syntax

public interface IDiagramItem : ISerializable, ISupportMouseOver, IPropertyChanged, IGroupable, ISupportManipulation, ISupportVirtualization, IContainerChild, ICollapsible

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

Remarks

The property matches the 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 "IGraph.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 "FrameworkElement.Name" 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
ElementVisibility Visibility { get; set; }
Property Value
ElementVisibility

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

CommonExtensions.GetActualBounds(IDiagramItem, Boolean)
CommonExtensions.GetActualBoundsWithoutTransform(IDiagramItem)
CommonExtensions.GetActualBoundsWithRotationTransform(IDiagramItem)
GroupExtensions.GetSupremumGroup(IGroupable, IDiagramItem)
SerializationExtensions.GetSerializationInfo(IDiagramItem)
SerializationExtensions.SetFromSerializationInfo(IDiagramItem, SerializationInfo)
SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)

See Also

IConnection
IShape
IConnector
Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • 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.