[Expand]General Information
[Collapse]WinForms Controls
  .NET Core Support
  Prerequisites
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications, and Dialogs
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Expand]Data Grid
  [Expand]Vertical Grid
  [Expand]Property Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Gantt Control
  [Expand]Chart Control
  [Collapse]Diagrams
    Getting Started
   [Expand]Diagram Control
   [Expand]End-User Interaction
   [Collapse]Diagram Items
     Shapes
     Default Shapes
     Connectors
     Images
     SVG Shapes
     Creating Shapes and Containers Using Shape Templates
     Containers
     Customizing the Appearance of Items
     Managing Items Interaction
   [Expand]Automatic Layout
   [Expand]Data Binding Functionality
    Themes and Styles
    Printing and Exporting
    Saving and Loading Diagrams
   [Expand]Examples
  [Expand]Gauges
  [Expand]Map Control
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]Printing-Exporting
  [Expand]PDF Viewer
   Reporting
  [Expand]Snap
  [Expand]TreeMap Control
  [Expand]Sunburst Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[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 the properties of existing diagram items by accessing them using the DiagramControl.Items collection. Alternatively, use the DiagramControl.ItemCreating event to modify the properties of an item that is about to be created.

Expanded Shapes and Images

Expanded Connectors

Expanded Containers

Operation

Item's Property

Diagram's Property

Adding items to the container

DiagramContainer.CanAddItems

Attaching connectors

DiagramItem.CanAttachConnectorBeginPoint

DiagramItem.CanAttachConnectorEndPoint

Copying

DiagramItem.CanCopy

DiagramOptionsProtection.AllowCopyItems

Deleting

DiagramItem.CanDelete

DiagramOptionsProtection.AllowAddRemoveItems

Editing the header text

DiagramItem.CanEdit

DiagramOptionsProtection.AllowEditItems

Hiding subordinate items

DiagramItem.CanHideSubordinates

Moving

DiagramItem.CanMove

DiagramOptionsProtection.AllowMoveItems

Moving with subordinate items

DiagramItem.MoveWithSubordinates

DiagramOptionsProtection.AllowMoveItems

Placing in/out of another container

DiagramItem.CanChangeParent

DiagramOptionsProtection.AllowMoveItems

Resizing

DiagramItem.CanResize

DiagramOptionsProtection.AllowResizeItems

Rotating

DiagramItem.CanRotate

DiagramOptionsProtection.AllowRotateItems

Selecting

DiagramItem.CanSelect

Snapping

DiagramItem.CanSnapToOtherItems

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?​​​​​​​