FontFamilyConverter.ConvertTo Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Attempts to convert a specified object to an instance of FontFamily.
public:
override System::Object ^ ConvertTo(System::ComponentModel::ITypeDescriptorContext ^ context, System::Globalization::CultureInfo ^ culture, System::Object ^ value, Type ^ destinationType);
public override object ConvertTo (System.ComponentModel.ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType);
override this.ConvertTo : System.ComponentModel.ITypeDescriptorContext * System.Globalization.CultureInfo * obj * Type -> obj
Public Overrides Function ConvertTo (context As ITypeDescriptorContext, culture As CultureInfo, value As Object, destinationType As Type) As Object
Parameters
- context
- ITypeDescriptorContext
Describes the context information of a type.
- culture
- CultureInfo
Cultural-specific information that should be respected during conversion.
- value
- Object
The object being converted.
- destinationType
- Type
The type that this instance of FontFamily is converted to.
Returns
The object that is created from the converted instance of FontFamily.
Exceptions
Occurs if value
or destinationType
is not a valid type for conversion.
Occurs if value
or destinationType
is null
.
Remarks
FontFamilyConverter supports conversion to and from the String type.