Επεξεργασία

Κοινή χρήση μέσω


FontFamilyValueSerializer.ConvertToString Method

Definition

Converts an instance of FontFamily to a String.

public:
 override System::String ^ ConvertToString(System::Object ^ value, System::Windows::Markup::IValueSerializerContext ^ context);
public override string ConvertToString (object value, System.Windows.Markup.IValueSerializerContext context);
override this.ConvertToString : obj * System.Windows.Markup.IValueSerializerContext -> string
Public Overrides Function ConvertToString (value As Object, context As IValueSerializerContext) As String

Parameters

value
Object

Instance of FontFamily to evaluate for conversion.

context
IValueSerializerContext

Context information used for conversion.

Returns

A String representation of the supplied FontFamily object.

Exceptions

Occurs when value is null or equal to Empty.

Remarks

Conversion is possible only if value is a FontFamily type. In addition, the Source property for value cannot be null, which identifies value as an anonymous FontFamily.

Applies to