VectorConverter.ConvertFrom 方法

定义

将指定的对象转换为 Vector.

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

描述类型的上下文信息。

culture
CultureInfo

描述 CultureInfo 要转换的类型。

value
Object

要转换的对象。

返回

Vector从转换value创建的 。

例外

valuenull

-或-

value 无法转换为 Vector.

注解

若要确定是否可以在不实际执行转换的情况下进行转换,请使用 CanConvertFrom 该方法。

适用于