Diagram for .NET / Getting Started / Integrating ThinWeb Diagram / Tools / Rect Zoom Tool
In This Topic
Rect Zoom Tool
In This Topic

The pan tool allows the user to zoom in / out the currently visible area of the document by pressing the mouse and drawing a selection rectangle. In order to use the rect zoom tool you must create an instance of the NRectZoomTool object and add it to the control Tools collection:

C#
Copy Code

NThinDiagramControl1.Controller.Tools.Add(new NRectZoomTool());

Visual Basic
Copy Code

NThinDiagramControl1.Controller.Tools.Add(new NRectZoomTool())

 Related Examples

Nevron Diagram\Web Forms\ThinWeb\Rect Zoom Tool
Nevron Diagram\Mvc\Rect Zoom Tool