DiagramClientView::SetZoomFactor Method (Single, PointD, Boolean)
Visual Studio 2015
Zooms in or out around a specified point in the diagram. The coordinates are in world units and relative to the diagram's top-left. Optionally, the view center can be moved to the zoom center.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
public: void SetZoomFactor( float newZoomFactor, PointD zoomCenterPoint, bool moveZoomCenterToViewCenter )
Parameters
- newZoomFactor
-
Type:
System::Single
Scaling factor (A value of 1 is considered 100%)
- zoomCenterPoint
-
Type:
Microsoft.VisualStudio.Modeling.Diagrams::PointD
Center point of zoom. This point will map to the same device coordinates after changing the zoom. The coordinates are in internal units and are relative to the diagram's top-left.
- moveZoomCenterToViewCenter
-
Type:
System::Boolean
If true, the zoom center point will become the view center point after the zoom.
Show: