Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Collapse]WinForms Controls
  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]Pivot Grid
  [Expand]Tree List
  [Expand]Chart Control
  [Collapse]Diagrams
    Getting Started
   [Collapse]Diagram Designer
     Canvas
     Shapes Panel
     Properties Panel
     Ribbon
     Bottom Panel
     Page Setup Dialog Window
     Print Preview
     Creating Runtime Diagram Designer
    Diagram Control
   [Expand]End-User Interaction
   [Expand]Diagram Items
   [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]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]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Canvas

Expanded Overview

The Canvas is the working area where end-users build diagrams using shapes and connectors.

It shows a grid and rulers that help your end-users to arrange shapes. The grid and rulers can be hidden by toggling the corresponding options within the View page of the Ribbon.

The grid is dynamically changed during zooming. When the end-user zoom in or out of the drawing, the grid spacing is adjusted automatically to be more appropriate for the new magnification.

The table below lists the main properties that affect canvas behavior and appearance.

Tip

You can change the background of the canvas by handling the DiagramControl.CustomDrawBackground event.

Expanded Basic Actions

To add 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.

To select shapes on the canvas

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

To resize a shape

Select the shape and drag a selection handle or change the Size property in the Properties Panel.

To move a shape

Select the shape and use the arrow keys on your keyboard or drag with the mouse. You can also change the Position property in the Properties panel.

To rotate a shape

Select the shape and drag the rotation handle with the mouse or change the Angle property in the Properties panel.

To add a connector

Select the Connector tool in the Tools group of the Ribbon and drag on the canvas.

To initiate text editing

Double-click a shape or right-click it and select the Edit text menu item. You can also change the Text property within the Properties panel. The text can be formatted using the Ribbon.

To undo or redo an action

Click the corresponding button at the top of the Ribbon or press the CTRL+Z / CTRL+Y key combination.

To change the current zoom

Hold the CTRL button and rotate the mouse wheel or use the zoom trackbar in the Bottom panel.

How would you rate this topic?​​​​​​​