MatrixValueSerializer 类

定义

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

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

示例

MarkupWriter

Matrix

注解

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

使用 MatrixValueSerializer 创建 Matrix 结构的 XAMLXAML 表示形式。Use a MatrixValueSerializer to create a XAMLXAML representation of a Matrix structure. 使用 MatrixConverter 从属性字符串创建 MatrixUse a MatrixConverter to create a Matrix from an attribute string.

构造函数

MatrixValueSerializer()

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

方法

CanConvertFromString(String, IValueSerializerContext)

确定是否可以从给定的 String 转换为 Matrix 的实例。Determines if conversion from a given String to an instance of Matrix is possible.

CanConvertToString(Object, IValueSerializerContext)

确定是否可将 Matrix 的实例转换为 StringDetermines if an instance of Matrix can be converted to a String.

ConvertFromString(String, IValueSerializerContext)

String 转换为 MatrixConverts a String into a Matrix.

ConvertToString(Object, IValueSerializerContext)

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

适用于