[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Collapse]WPF Controls
  Prerequisites
 [Expand]What's Installed
 [Expand].NET Core 3 Support
 [Expand]Common Concepts
 [Expand]MVVM Framework
 [Collapse]Controls and Libraries
   Reporting
  [Expand]Data Grid
  [Expand]Ribbon, Bars and Menu
  [Expand]Charts Suite
  [Expand]Pivot Grid
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Tree List
  [Expand]Gauge Controls
  [Expand]Map Control
  [Expand]Layout Management
  [Expand]Windows Modern UI
  [Expand]Printing-Exporting
  [Expand]Data Editors
  [Expand]Navigation Controls
  [Expand]Spell Checker
  [Expand]Property Grid
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Gantt Control
  [Collapse]Diagram Control
    Getting Started
   [Expand]Diagram Control
   [Expand]End-User Interaction
   [Collapse]Diagram Items
     Shapes
     Default Shapes
     Connectors
     Containers
     Images
     SVG Shapes
     Items with Custom Content
     Creating Shapes and Containers Using Shape Templates
     Managing Items Interaction
   [Expand]Automatic Layout
   [Expand]Data Binding
    Themes and Styles
    Printing and Exporting
    Saving and Loading Diagrams
   [Expand]Examples
  [Expand]Windows and Utility Controls
   Dialogs, Notifications and Panels
  [Expand]Scheduler (legacy)
 [Expand]Scaffolding Wizard
 [Expand]Localization
  Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Managing Items Interaction

The Diagram control provides a set of properties that allow you to restrict end-users from performing certain operations with diagram items.

You can modify existing diagram items' properties by accessing them using the DiagramControl.Items collection. Alternatively, use the DiagramControl.AddingNewItem event to modify the properties of an item that is about to be added to the diagram by the end-user.

Expanded DiagramShape

Expanded DiagramConnector

Expanded DiagramImage

Expanded DiagramContainer

Action

Item's Property

Diagram's Property

Adding items to the container

DiagramContainer.CanAddItems

Attaching connectors

DiagramItem.CanAttachConnectorBeginPoint

DiagramItem.CanAttachConnectorEndPoint

Copying

DiagramItem.CanCopy

DiagramControl.AllowCopyItems

Deleting

DiagramItem.CanDelete

DiagramControl.AllowAddRemoveItems

Editing the header text

DiagramItem.CanEdit

DiagramControl.AllowEditItems

Hiding subordinate items

DiagramItem.CanHideSubordinates

Moving

DiagramItem.CanMove

DiagramControl.AllowMoveItems

Moving with subordinate items

DiagramItem.MoveWithSubordinates

DiagramControl.AllowMoveItems

Placing in/out of a container

DiagramItem.CanChangeParent

DiagramControl.AllowMoveItems

Resizing

DiagramItem.CanResize

DiagramControl.AllowResizeItems

Rotating

DiagramItem.CanRotate

DiagramControl.AllowRotateItems

Selecting

DiagramItem.CanSelect

Snapping

DiagramItem.CanSnapToOtherItems

DiagramItem.CanSnapToThisItem

Use the following properties to restrict operations with child items of a DiagramContainer. These properties have a lower priority than corresponding properties of the child items.

Expanded See Also

Is this topic helpful?​​​​​​​