ReportSizeConverter.ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type) 方法

定义

使用指定的上下文和区域性信息将给定值对象转换为指定的类型。

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

参数

context
ITypeDescriptorContext

提供格式上下文。

culture
CultureInfo

当前区域性。

value
Object

要转换的 Object

destinationType
Type

要将值参数转换为的 Type

返回

Object

表示转换的值的 Object

适用于