PointValueSerializer 类

定义

String 的实例与 Point 的实例进行来回转换。Converts instances of String to and from instances of Point.

public ref class PointValueSerializer : System::Windows::Markup::ValueSerializer
public class PointValueSerializer : System.Windows.Markup.ValueSerializer
type PointValueSerializer = class
    inherit ValueSerializer
Public Class PointValueSerializer
Inherits ValueSerializer
继承
PointValueSerializer

构造函数

PointValueSerializer()

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

方法

CanConvertFromString(String, IValueSerializerContext)

确定指定的 String 是否可转换为 Point 的实例。Determines whether the specified String can be converted to an instance of Point.

CanConvertToString(Object, IValueSerializerContext)

确定指定的 Point 是否可以转换为 StringDetermines whether the specified Point can be converted to a String.

ConvertFromString(String, IValueSerializerContext)

String 转换为 PointConverts a String into a Point.

ConvertToString(Object, IValueSerializerContext)

Point 的实例转换为 StringConverts an instance of Point to a String.

Equals(Object)

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

(继承自 Object)
GetConvertFromException(Object)

返回当转换无法执行时所引发的异常。Returns an exception to throw when a conversion cannot be performed.

(继承自 ValueSerializer)
GetConvertToException(Object, Type)

返回当转换无法执行时所引发的异常。Returns an exception to throw when a conversion cannot be performed.

(继承自 ValueSerializer)
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)
TypeReferences(Object, IValueSerializerContext)

获取 ValueSerializer 引用的类型的枚举。Gets an enumeration of the types referenced by the ValueSerializer.

(继承自 ValueSerializer)

适用于