Sets the viewport (the part of the diagram which is visible).
Namespace:
Mindscape.WpfDiagrammingAssembly: Mindscape.WpfDiagramming.Foundation (in Mindscape.WpfDiagramming.Foundation.dll)
Version: 2.0.0.0 (2.0.0.0)
Syntax
C# |
---|
public void SetViewport( Rect viewport ) |
Visual Basic (Declaration) |
---|
Public Sub SetViewport ( _ viewport As Rect _ ) |
Parameters
- viewport
- Type: System.Windows..::.Rect
The desired viewport, in diagram coordinates.
Remarks
In order to preserve the aspect ratio of the diagram, the displayed viewport
may be larger than the requested viewport.