Managing Items Interaction
- 2 minutes to read
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.
Shapes and Images
Operation | Item’s Property | Diagram’s Property |
---|---|---|
Attaching connectors | ||
Copying | ||
Deleting | ||
Editing the text | ||
Hiding subordinate items | ||
Moving | ||
Moving with subordinate items | ||
Placing in/out of a container | ||
Resizing | ||
Rotating | ||
Selecting | ||
Snapping | ||
Transforming |
Connectors
Operation | Item’s Property | Diagram’s Property |
---|---|---|
Copying | ||
Deleting | ||
Dragging the begin and end points | ||
Dragging intermediate points | ||
Editing the text | ||
Moving | ||
Placing in/out of a container | ||
Selecting |
Containers
Operation | Item’s Property | Diagram’s Property |
---|---|---|
Adding items to the container | ||
Attaching connectors | ||
Copying | ||
Deleting | ||
Editing the header text | ||
Hiding subordinate items | ||
Moving | ||
Moving with subordinate items | ||
Placing in/out of another container | ||
Resizing | ||
Rotating | ||
Selecting | ||
Snapping |
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.
- DiagramContainer.ItemsCanAttachConnectorBeginPoint
- DiagramContainer.ItemsCanAttachConnectorEndPoint
- DiagramContainer.ItemsCanChangeParent
- DiagramContainer.ItemsCanCopyWithoutParent
- DiagramContainer.ItemsCanDeleteWithoutParent
- DiagramContainer.ItemsCanEdit
- DiagramContainer.ItemsCanMove
- DiagramContainer.ItemsCanResize
- DiagramContainer.ItemsCanRotate
- DiagramContainer.ItemsCanSelect
- DiagramContainer.ItemsCanSnapToOtherItems
- DiagramContainer.ItemsCanSnapToThisItem