Language

ThicknessConverter.ConvertTo メソッド

定義

Thicknessのインスタンスを指定した型に変換しようとします。

public:
 override System::Object ^ ConvertTo(System::ComponentModel::ITypeDescriptorContext ^ typeDescriptorContext, System::Globalization::CultureInfo ^ cultureInfo, System::Object ^ value, Type ^ destinationType);
[System.Security.SecurityCritical]
public override object ConvertTo(System.ComponentModel.ITypeDescriptorContext typeDescriptorContext, System.Globalization.CultureInfo cultureInfo, object value, Type destinationType);
public override object ConvertTo(System.ComponentModel.ITypeDescriptorContext typeDescriptorContext, System.Globalization.CultureInfo cultureInfo, object value, Type destinationType);
[<System.Security.SecurityCritical>]
override this.ConvertTo : System.ComponentModel.ITypeDescriptorContext * System.Globalization.CultureInfo * obj * Type -> obj
override this.ConvertTo : System.ComponentModel.ITypeDescriptorContext * System.Globalization.CultureInfo * obj * Type -> obj
Public Overrides Function ConvertTo (typeDescriptorContext As ITypeDescriptorContext, cultureInfo As CultureInfo, value As Object, destinationType As Type) As Object

パラメーター

typeDescriptorContext
ITypeDescriptorContext

型のコンテキスト情報。

cultureInfo
CultureInfo

変換される型の CultureInfo 。

value
Object

変換する Thickness のインスタンス。

destinationType
Type

Thicknessのこのインスタンスが変換される型。

返品

型コンバーターが Thicknessのインスタンスを変換するときに作成される型。

属性

例外

value オブジェクトは null 参照 (Nothing) ではなく、Brush ではないか、destinationTypeが変換に有効な型の 1 つではありません。

value オブジェクトは null 参照です。

適用対象

こちらもご覧ください