Condividi tramite


DiagramClientView.SetZoomFactor Method

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.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)

Syntax

'Dichiarazione
Public Sub SetZoomFactor ( _
    newZoomFactor As Single, _
    zoomCenterPoint As PointD, _
    moveZoomCenterToViewCenter As Boolean _
)
public void SetZoomFactor(
    float newZoomFactor,
    PointD zoomCenterPoint,
    bool moveZoomCenterToViewCenter
)
public:
void SetZoomFactor(
    float newZoomFactor, 
    PointD zoomCenterPoint, 
    bool moveZoomCenterToViewCenter
)
member SetZoomFactor : 
        newZoomFactor:float32 * 
        zoomCenterPoint:PointD * 
        moveZoomCenterToViewCenter:bool -> unit 
public function SetZoomFactor(
    newZoomFactor : float, 
    zoomCenterPoint : PointD, 
    moveZoomCenterToViewCenter : boolean
)

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.

.NET Framework Security

See Also

Reference

DiagramClientView Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace