Skip to main content
.NET Framework Class Library
FontFamilyValueSerializer Class

Converts instances of String to and from instances of FontFamily.

Inheritance Hierarchy
SystemObject
   System.Windows.MarkupValueSerializer
    System.Windows.MediaFontFamilyValueSerializer

Namespace:   System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation
Syntax
Public Class FontFamilyValueSerializer _
	Inherits [%$TOPIC/ms634905_en-us_VS_110_4_0_0_0_0%]
public class FontFamilyValueSerializer : [%$TOPIC/ms634905_en-us_VS_110_4_0_1_0_0%]
public ref class FontFamilyValueSerializer : public [%$TOPIC/ms634905_en-us_VS_110_4_0_2_0_0%]
type FontFamilyValueSerializer =  
    class 
        inherit [%$TOPIC/ms634905_en-us_VS_110_4_0_3_0_0%] 
    end
public class FontFamilyValueSerializer extends [%$TOPIC/ms634905_en-us_VS_110_4_0_4_0_0%]
<FontFamilyValueSerializer .../>

The FontFamilyValueSerializer type exposes the following members.

Constructors
  NameDescription
Public method FontFamilyValueSerializerInitializes a new instance of the FontFamilyValueSerializer class.
Top
Methods
  NameDescription
Public method CanConvertFromStringDetermines if conversion from a given String to an instance of FontFamily is possible. (Overrides ValueSerializerCanConvertFromString(String, IValueSerializerContext).)
Public method CanConvertToStringDetermines if an instance of FontFamily can be converted to a String. (Overrides ValueSerializerCanConvertToString(Object, IValueSerializerContext).)
Public method ConvertFromStringConverts a String into a FontFamily. (Overrides ValueSerializerConvertFromString(String, IValueSerializerContext).)
Public method ConvertToStringConverts an instance of FontFamily to a String. (Overrides ValueSerializerConvertToString(Object, IValueSerializerContext).)
Public method Equals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Protected method GetConvertFromExceptionReturns an exception to throw when a conversion cannot be performed. (Inherited from ValueSerializer.)
Protected method GetConvertToExceptionReturns an exception to throw when a conversion cannot be performed. (Inherited from ValueSerializer.)
Public method GetHashCodeServes as the default hash function. (Inherited from Object.)
Public method GetTypeGets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public method ToStringReturns a string that represents the current object. (Inherited from Object.)
Public method TypeReferencesGets an enumeration of the types referenced by the ValueSerializer. (Inherited from ValueSerializer.)
Top
Remarks

This class is typically only utilized by the MarkupWriter for serialization purposes.

Version Information

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.