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 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.
DiagramShape
Action | 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 |
DiagramConnector
Action | Item’s Property | Diagram’s Property |
---|---|---|
Copying | ||
Deleting | ||
Dragging the begin and end points | ||
Dragging intermediate points | ||
Editing the text | ||
Moving | ||
Selecting |
DiagramImage
Action | Item’s Property | Diagram’s Property |
---|---|---|
Attaching connectors | ||
Copying | ||
Deleting | ||
Hiding subordinate items | ||
Moving | ||
Moving with subordinate items | ||
Placing in/out of a container | ||
Resizing | ||
Rotating | ||
Selecting | ||
Snapping |
DiagramContainer
Action | 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 a 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