Edit

Share via


FontFamilyValueSerializer.CanConvertToString Method

Definition

Determines if an instance of FontFamily can be converted to a String.

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

Parameters

value
Object

Instance of FontFamily to evaluate for conversion.

context
IValueSerializerContext

Context information used for conversion.

Returns

true if value can be converted into a String; otherwise, false.

Remarks

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

Applies to