ZoomPercentageConverter 类

定义

实现一个类型转换器,该转换器用于将 Double(用作 Zoom 的值)与其他类型相互转换。Implements a type converter for converting Double (used as the value of Zoom) to and from other types.

public ref class ZoomPercentageConverter sealed : System::Windows::Data::IValueConverter
public sealed class ZoomPercentageConverter : System.Windows.Data.IValueConverter
type ZoomPercentageConverter = class
    interface IValueConverter
Public NotInheritable Class ZoomPercentageConverter
Implements IValueConverter
继承
ZoomPercentageConverter
实现

构造函数

ZoomPercentageConverter()

初始化 ZoomPercentageConverter 类的新实例。Initializes a new instance of the ZoomPercentageConverter class.

方法

Convert(Object, Type, Object, CultureInfo)

Double(用作 Zoom 的值)转换为指定类型的对象。Converts the Double (used as the value of Zoom) to an object of the specified type.

ConvertBack(Object, Type, Object, CultureInfo)

Zoom 的先前转换的值返回到可指派给 DoubleZoomReturns a previously converted value of Zoom back to a Double that can be assigned to Zoom.

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

适用于