共用方式為


ZoomLevelConverter 類別

允許的縮放層級的雙精度浮點表示字串之間的轉換。

繼承階層架構

Object
  Microsoft.VisualStudio.Text.Editor.ZoomLevelConverter

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

語法

'宣告
<ValueConversionAttribute(GetType(Double), GetType(String))> _
Public NotInheritable Class ZoomLevelConverter _
    Implements IValueConverter
[ValueConversionAttribute(typeof(double), typeof(string))]
public sealed class ZoomLevelConverter : IValueConverter
[ValueConversionAttribute(typeof(double), typeof(String))]
public ref class ZoomLevelConverter sealed : IValueConverter
[<Sealed>]
[<ValueConversionAttribute(typeof(float), typeof(string))>]
type ZoomLevelConverter =  
    class 
        interface IValueConverter 
    end
public final class ZoomLevelConverter implements IValueConverter

ZoomLevelConverter 類型會公開下列成員。

建構函式

  名稱 描述
公用方法 ZoomLevelConverter 初始化 ZoomLevelConverter 的新執行個體。

回頁首

方法

  名稱 描述
公用方法 Convert 將縮放比例的雙精度浮點轉換成字串。
公用方法 ConvertBack 將值從字串轉換成雙精度浮點數。
公用方法 Equals 判斷指定的物件是否等於目前的物件。 (繼承自 Object)。
公用方法 GetHashCode 做為預設雜湊函式。 (繼承自 Object)。
公用方法 GetType 取得目前實例 Type 的屬性。 (繼承自 Object)。
公用方法 ToString 傳回代表目前物件的字串。 (繼承自 Object)。

回頁首

執行緒安全

這個類型的任何 Public static (在 Visual Basic 中為 Shared) 成員都是安全執行緒。不保證任何執行個體成員是安全執行緒。

請參閱

參考

Microsoft.VisualStudio.Text.Editor 命名空間