共用方式為


ZoomControl.SetSelectedZoomLevel 方法

設定 SelectedZoomLevelProperty。

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

語法

'宣告
Public Shared Sub SetSelectedZoomLevel ( _
    control As DependencyObject, _
    value As Double _
)
public static void SetSelectedZoomLevel(
    DependencyObject control,
    double value
)
public:
static void SetSelectedZoomLevel(
    DependencyObject^ control, 
    double value
)
static member SetSelectedZoomLevel : 
        control:DependencyObject * 
        value:float -> unit
public static function SetSelectedZoomLevel(
    control : DependencyObject, 
    value : double
)

參數

  • value
    類型:Double

    縮放層級。

.NET Framework 安全性

請參閱

參考

ZoomControl 類別

Microsoft.VisualStudio.Text.Editor 命名空間