FontFamilyValueSerializer 類別

定義

String 執行個體轉換為 FontFamily 執行個體,以及反向操作。Converts instances of String to and from instances of FontFamily.

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

備註

此類別通常僅供 MarkupWriter 用於序列化目的使用。This class is typically only utilized by the MarkupWriter for serialization purposes.

建構函式

FontFamilyValueSerializer()

初始化 FontFamilyValueSerializer 類別的新執行個體。Initializes a new instance of the FontFamilyValueSerializer class.

方法

CanConvertFromString(String, IValueSerializerContext)

判斷是否可將指定的 String 轉換成 FontFamily 的執行個體。Determines if conversion from a given String to an instance of FontFamily is possible.

CanConvertToString(Object, IValueSerializerContext)

判斷 FontFamily 的執行個體是否可轉換為 StringDetermines if an instance of FontFamily can be converted to a String.

ConvertFromString(String, IValueSerializerContext)

String 轉換成 FontFamilyConverts a String into a FontFamily.

ConvertToString(Object, IValueSerializerContext)

FontFamily 的執行個體轉換到 StringConverts an instance of FontFamily 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)

適用於

另請參閱