TableLayoutSettingsTypeConverter.ConvertTo 方法

定义

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

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);
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

一个 ITypeDescriptorContext,用于提供格式上下文。

culture
CultureInfo

要用作当前区域性的 CultureInfo 对象。

value
Object

要转换的 Object

destinationType
Type

要将值参数转换为的 Type

返回

Object

一个 Object,它表示转换后的值。

例外

destinationTypenull

适用于