Int32RectValueSerializer 类

定义

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

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

注解

通常,此类仅供 MarkupWriter 用于序列化目的使用。This class is typically only utilized by the MarkupWriter for serialization purposes.

构造函数

Int32RectValueSerializer()

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

方法

CanConvertFromString(String, IValueSerializerContext)

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

CanConvertToString(Object, IValueSerializerContext)

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

ConvertFromString(String, IValueSerializerContext)

String 转换为 Int32RectConverts a String into a Int32Rect.

ConvertToString(Object, IValueSerializerContext)

Int32Rect 的实例转换为 StringConverts an instance of Int32Rect 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)

适用于