Share via


DiagramView.ZoomAtViewCenter Method

Zooms in or out around the center point of the current view.

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

Syntax

'Declaration
Public Sub ZoomAtViewCenter ( _
    newZoomFactor As Single _
)
public void ZoomAtViewCenter(
    float newZoomFactor
)
public:
void ZoomAtViewCenter(
    float newZoomFactor
)
member ZoomAtViewCenter : 
        newZoomFactor:float32 -> unit
public function ZoomAtViewCenter(
    newZoomFactor : float
)

Parameters

  • newZoomFactor
    Type: Single

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

.NET Framework Security

See Also

Reference

DiagramView Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace