FontUnitConverter.ConvertFrom 方法

定義

將物件轉換成特定文化特性 (Culture) 中的 FontUnit

public:
 override System::Object ^ ConvertFrom(System::ComponentModel::ITypeDescriptorContext ^ context, System::Globalization::CultureInfo ^ culture, System::Object ^ value);
public override object ConvertFrom (System.ComponentModel.ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value);
override this.ConvertFrom : System.ComponentModel.ITypeDescriptorContext * System.Globalization.CultureInfo * obj -> obj
Public Overrides Function ConvertFrom (context As ITypeDescriptorContext, culture As CultureInfo, value As Object) As Object

參數

context
ITypeDescriptorContext

ITypeDescriptorContext 實作的物件,提供型別轉換子內容的相關資訊。

culture
CultureInfo

CultureInfo,指定文化特性來表示 FontUnit (當它被適當表達時)。

value
Object

物件,要轉換成 FontUnit

傳回

Object,表示轉換的值。

備註

ConvertFrom使用 方法,將 參數 FontUnitvalue 指定的 物件轉換成 參數所指定文化特性中的 culture

注意

如果指定的物件為 null ,則傳回的值也是 null 。 同樣地,如果指定的物件是 String.EmptyEmpty 則會傳回 。

注意

這個方法只能將字串 FontUnit 轉換成 。

適用於

另請參閱