InputPanel for WinForms帮助文档
ConvertTo(ITypeDescriptorContext,CultureInfo,Object,Type) 方法






The context.
The culture.
The object to convert.
The type to convert to.
Converts the object into the specified data type.
语法
public override System.object ConvertTo( 
   System.ComponentModel.ITypeDescriptorContext context,
   System.Globalization.CultureInfo culture,
   System.object value,
   System.Type destType
)
public function ConvertTo( 
    context: System.ComponentModel.ITypeDescriptorContext;
    culture: System.Globalization.CultureInfo;
    value: System.TObject;
    destType: System.Type
): System.TObject; override; 
public override function ConvertTo( 
   context : System.ComponentModel.ITypeDescriptorContext,
   culture : System.Globalization.CultureInfo,
   value : System.Object,
   destType : System.Type
) : System.Object;
public: System.Object* ConvertTo( 
   System.ComponentModel.ITypeDescriptorContext* context,
   System.Globalization.CultureInfo* culture,
   System.Object* value,
   System.Type* destType
) override 
public:
System.Object^ ConvertTo( 
   System.ComponentModel.ITypeDescriptorContext^ context,
   System.Globalization.CultureInfo^ culture,
   System.Object^ value,
   System.Type^ destType
) override 
'声明
 
Public Overloads Overrides Function ConvertTo( _
   ByVal context As System.ComponentModel.ITypeDescriptorContext, _
   ByVal culture As System.Globalization.CultureInfo, _
   ByVal value As System.Object, _
   ByVal destType As System.Type _
) As System.Object
 
'用法
 
Dim instance As ImageEntryTypeConverter
Dim context As System.ComponentModel.ITypeDescriptorContext
Dim culture As System.Globalization.CultureInfo
Dim value As System.Object
Dim destType As System.Type
Dim value As System.Object
 
value = instance.ConvertTo(context, culture, value, destType)

参数

context
The context.
culture
The culture.
value
The object to convert.
destType
The type to convert to.

返回值

The converted object.
需求

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

请参见

引用

ImageEntryTypeConverter 类
ImageEntryTypeConverter 成员
重载列表

Send Feedback