共用方式為


ZoomControl.GetSelectedZoomLevel 方法

取得 SelectedZoomLevelProperty。

命名空間:  Microsoft.VisualStudio.Text.Editor
組件:  Microsoft.VisualStudio.Text.UI.Wpf (在 Microsoft.VisualStudio.Text.UI.Wpf.dll 中)

語法

'宣告
Public Shared Function GetSelectedZoomLevel ( _
    control As DependencyObject _
) As Double
public static double GetSelectedZoomLevel(
    DependencyObject control
)
public:
static double GetSelectedZoomLevel(
    DependencyObject^ control
)
static member GetSelectedZoomLevel : 
        control:DependencyObject -> float
public static function GetSelectedZoomLevel(
    control : DependencyObject
) : double

參數

傳回值

類型:Double
代表所選取縮放層級的雙精度浮點數。

.NET Framework 安全性

請參閱

參考

ZoomControl 類別

Microsoft.VisualStudio.Text.Editor 命名空間