[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
   [Collapse]End-User Interaction
     Shortcuts
   [Expand]Diagram Items
   [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)

End-User Interaction

This document describes end-user operations available in the Diagram Control and Diagram Designer Control.

Tip

You can restrict end-user operations by setting the DiagramControl.IsReadOnly property to true. Setting the desired diagram protection options (listed in the DiagramControl.IsReadOnly property's description) to true overrides the IsReadOnly property.

Expanded Basic Actions

These operations available both in the Diagram Control and Diagram Designer Control.

Selecting items on the canvas

Select the Pointer tool in the Tools group of the Ribbon and click an item to select it or drag to draw a marquee over the items you want to select.

Corresponding property: SelectionMode (see DiagramControl.SelectionMode)

Copying

To copy the selected items, drag them while holding down the CTRL key or press the CTRL+C key combination to copy the selection to clipboard and then press the CTRL+V key combination to paste the clipboard content to the canvas.

Corresponding property: AllowCopyItems (see DiagramControl.AllowCopyItems)

Resizing an item

Select the item and drag a selection handle.

Corresponding property: AllowResizeItems (see DiagramControl.AllowResizeItems)

Moving an item

Select the item and use the arrow keys on your keyboard or drag with the mouse.

Corresponding property: AllowMoveItems (see DiagramControl.AllowMoveItems)

Rotating an item

Select the item and drag the rotation handle with the mouse.

Corresponding property: AllowRotateItems (see DiagramControl.AllowRotateItems)

Transforming a shape

Certain shapes display yellow handles when selected. Drag the handle to transform the shape.

Corresponding property: AllowChangeShapesParameter (see DiagramControl.AllowChangeShapesParameter)

Initiating text editing

Double-click an item or right-click it and select the Edit text menu item. To accept changes, press the ESC key or click anywhere on the canvas.

Corresponding property: AllowEditItems (see DiagramControl.AllowEditItems)

Formatting the text within an item

Right-click the item to invoke the mini toolbar that allows you to change the font size and make the text bold or italic.

Corresponding properties:

Performing undo/redo operations

Press the CTRL+Z / CTRL+Y key combination.

Corresponding property: AllowUndoRedo (see DiagramControl.AllowUndoRedo)

Changing the current zoom

Hold the CTRL button and rotate the mouse wheel.

Corresponding property: AllowZoom (see DiagramControl.AllowZoom)

Expanding/collapsing subordinate items

Click the expand-collapse button below a shape to show or hide the subordinate items.

Expanded Diagram Designer Actions

These operations are only available in the Diagram Designer Control.

Adding a shape to the canvas

Drag the shape from the Shapes Panel or select a drawing tool (Rectangle, Ellipse, Right Triangle, Hexagon) in the Tools group of the Ribbon and drag on the canvas to draw the corresponding shape.

Corresponding property: AllowAddRemoveItems (see DiagramControl.AllowAddRemoveItems)

Adding a container to the canvas

Select the Container ribbon item on the Insert ribbon page.

Corresponding property: AllowAddRemoveItems (see DiagramControl.AllowAddRemoveItems)

Resizing an item

Select the item and change the Size property in the Properties Panel.

Setting the AllowResizeItems (see DiagramControl.AllowResizeItems) property to false does not restrict this operation.

Moving an item

Select the item and change the Position property in the Properties panel.

Setting the AllowMoveItems (see DiagramControl.AllowMoveItems) property to false does not restrict this operation.

Rotating an item

Select the item and change the Angle property in the Properties panel.

Setting the AllowRotateItems (see DiagramControl.AllowRotateItems) property to false does not restrict this operation.

Changing the text within an item

Select the item and change the Text property within the Properties panel.

Setting the AllowEditItems (see DiagramControl.AllowEditItems) property to false does not restrict this operation.

Formatting the text within an item

Select the item and use the Ribbon's Font and Paragraph groups to change the font family, color and size, make text bold, italic, underline or strikethrough and apply horizontal and vertical alignment.

Corresponding properties:

Adding a connector

Select the Connector tool in the Tools group of the Ribbon and drag on the canvas. For a detailed description of connecting shapes, see Connectors.

Corresponding property: AllowAddRemoveItems (see DiagramControl.AllowAddRemoveItems)

Performing undo/redo operations

Click the corresponding button at the top of the Ribbon.

Corresponding property: AllowUndoRedo (see DiagramControl.AllowUndoRedo)

Changing the current zoom

Use the zoom trackbar in the Bottom Panel.

Corresponding property: AllowZoom (see DiagramControl.AllowZoom)

Applying a theme to the diagram

Select the desired theme it in the Ribbon's Themes group on the Design page.

Corresponding property: AllowChangeTheme (see DiagramControl.AllowChangeTheme)

Changing the color of an item

Select the item and pick the desired color using the Background and Stroke color pickers in the Ribbon's Shape Styles group on the Home page or choose a predefined style. You can also change the BackgroundColor, ForegroundColor and Stroke properties in the Properties panel.

Corresponding properties:

Expanded See Also

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