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

定義

嘗試將指定的物件轉換為 Vector3D 結構。Attempts to convert a specified object to a Vector3D structure.

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 ITypeDescriptorContext ITypeDescriptorContext

這個呼叫的 ITypeDescriptorContext。The ITypeDescriptorContext for this call.

culture
CultureInfo CultureInfo CultureInfo CultureInfo

描述正要轉換之型別的 CultureInfoDescribes the CultureInfo of the type being converted.

value
Object Object Object Object

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

傳回

從已轉換之 value 建立的 Vector3D 結構。The Vector3D structure created from the converted value.

例外狀況

如果指定的物件為 null 或屬於無法轉換為 Vector3D 結構的類型,便會發生這種情況。Occurs if the specified object is null or is a type that cannot be converted to a Vector3D structure.

適用於