RectConverter.ConvertFrom(ITypeDescriptorContext, CultureInfo, Object) 方法

定义

尝试将指定的对象转换为 .Rect

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

转换时尊重的文化信息。

value
Object

要转换的对象。

返回

Rect从转换value创建的 。

例外

指定的对象为 NULL 或无法转换为类型 Rect

注解

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

适用于