Assembly: yWorks.yFilesNET.Viewer (in yWorks.yFilesNET.Viewer.dll) Version: 4.1.0.1 (4.1.0.1)
Syntax
| C# |
|---|
[ObfuscationAttribute(StripAfterObfuscation = false, Exclude = true, ApplyToMembers = false)] public class CanvasControl : Control, ILookup |
| Visual Basic |
|---|
<ObfuscationAttribute(StripAfterObfuscation := False, Exclude := True, _ ApplyToMembers := False)> _ Public Class CanvasControl _ Inherits Control _ Implements ILookup |
Remarks
The scene graph tree is made up of ICanvasObject elements. Multiple elements are grouped in ICanvasObjectGroup elements. An ICanvasObject consists of a UserObjectuser-object and an ICanvasObjectDescriptor that is used by the rendering engine to query interfaces that perform the actual painting, hit testing, and bounds calculation.
This control comes with a number of default command bindings that work on the view port:
- NavigationCommands.IncreaseZoom
- NavigationCommands.DecreaseZoom
- NavigationCommands.Zoom
- ComponentCommands.ScrollPageDown
- ComponentCommands.ScrollPageUp
- ComponentCommands.ScrollPageLeft
- ComponentCommands.ScrollPageRight
In addition to the bindings for existing commands this class declares a new RoutedUICommand, FitContentCommand, that will invoke the FitContent()()()() method.
All commands can be removed from the CommandBindings if desired.
This control offers convenience methods to Print()()()() the contents and export them to EMF files.
Related Reading in the Developer's Guide
Related Demo Applications
Inheritance Hierarchy
System..::..MarshalByRefObject
System.ComponentModel..::..Component
System.Windows.Forms..::..Control
yWorks.Canvas..::..CanvasControl
yWorks.yFiles.UI..::..GraphControl
yWorks.yFiles.UI..::..GraphOverviewControl