Sets the viewport (the part of the scroll region which is visible).
Namespace:
Mindscape.WpfDiagramming.FoundationAssembly: 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 content coordinates).
Remarks
In order to preserve the aspect ratio of the content, the displayed viewport
may be larger than the requested viewport.