共用方式為


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

適用於