FontFamilyConverter.ConvertFrom(ITypeDescriptorContext, CultureInfo, Object) FontFamilyConverter.ConvertFrom(ITypeDescriptorContext, CultureInfo, Object) FontFamilyConverter.ConvertFrom(ITypeDescriptorContext, CultureInfo, Object) Method

定義

嘗試將指定的物件轉換為 FontFamily 的執行個體。Attempts to convert a specified object to an instance of FontFamily.

public:
 override System::Object ^ ConvertFrom(System::ComponentModel::ITypeDescriptorContext ^ context, System::Globalization::CultureInfo ^ cultureInfo, System::Object ^ o);
public override object ConvertFrom (System.ComponentModel.ITypeDescriptorContext context, System.Globalization.CultureInfo cultureInfo, object o);
override this.ConvertFrom : System.ComponentModel.ITypeDescriptorContext * System.Globalization.CultureInfo * obj -> obj

參數

context
ITypeDescriptorContext ITypeDescriptorContext ITypeDescriptorContext

描述類型的內容資訊。Describes the context information of a type.

cultureInfo
CultureInfo CultureInfo CultureInfo

轉換期間應遵守的特定文化特性資訊。Cultural-specific information that should be respected during conversion.

o
Object Object Object

要轉換的物件。The object being converted.

傳回

從已轉換的 o 參數建立的 FontFamily 執行個體。The instance of FontFamily that is created from the converted o parameter.

例外狀況

o 不是 null,而且不是可轉換成 FontFamily 的有效型別。o is not null and is not a valid type that can be converted to a FontFamily.

備註

FontFamilyConverter支援在String類型之間進行轉換。FontFamilyConverter supports conversion to and from the String type.

適用於