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.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
Syntax
'Declaration
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.SingleScaling factor (A value of 1 is considered 100%)
zoomCenterPoint
Type: Microsoft.VisualStudio.Modeling.Diagrams.PointDCenter 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.BooleanIf true, the zoom center point will become the view center point after the zoom.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.