Udostępnij za pośrednictwem


DiagramClientView.SetZoomFactor(Single, PointD, Boolean) Method

Definition

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.

public:
 void SetZoomFactor(float newZoomFactor, Microsoft::VisualStudio::Modeling::Diagrams::PointD zoomCenterPoint, bool moveZoomCenterToViewCenter);
public void SetZoomFactor (float newZoomFactor, Microsoft.VisualStudio.Modeling.Diagrams.PointD zoomCenterPoint, bool moveZoomCenterToViewCenter);
member this.SetZoomFactor : single * Microsoft.VisualStudio.Modeling.Diagrams.PointD * bool -> unit
Public Sub SetZoomFactor (newZoomFactor As Single, zoomCenterPoint As PointD, moveZoomCenterToViewCenter As Boolean)

Parameters

newZoomFactor
Single

Scaling factor (A value of 1 is considered 100%)

zoomCenterPoint
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
Boolean

If true, the zoom center point will become the view center point after the zoom.

Applies to