FontFamilyConverter.ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type) FontFamilyConverter.ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type) FontFamilyConverter.ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type) FontFamilyConverter.ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type) Method

定義

指定されたオブジェクトを FontFamily のインスタンスに変換できるか試みます。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

パラメーター

context
ITypeDescriptorContext ITypeDescriptorContext ITypeDescriptorContext ITypeDescriptorContext

型のコンテキスト情報を説明します。Describes the context information of a type.

culture
CultureInfo CultureInfo CultureInfo CultureInfo

変換時に尊重する必要があるカルチャ固有の情報。Cultural-specific information that should be respected during conversion.

value
Object Object Object Object

変換対象のオブジェクト。The object being converted.

destinationType
Type Type Type Type

FontFamily のこのインスタンスの変換先の型。The type that this instance of FontFamily is converted to.

戻り値

FontFamily の変換されたインスタンスから作成されるオブジェクト。The object that is created from the converted instance of FontFamily.

例外

value または destinationType が、変換に有効な型ではない場合に発生します。Occurs if value or destinationType is not a valid type for conversion.

value または destinationTypenull の場合に発生します。Occurs if value or destinationType is null.

注釈

FontFamilyConverter 間の変換をサポートしている、String型。FontFamilyConverter supports conversion to and from the String type.

適用対象