Bewerken

Delen via


ThicknessConverter.ConvertTo Method

Definition

Attempts to convert an instance of Thickness to a specified type.

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

Parameters

typeDescriptorContext
ITypeDescriptorContext

The context information of a type.

cultureInfo
CultureInfo

The CultureInfo of the type being converted.

value
Object

The instance of Thickness to convert.

destinationType
Type

The type that this instance of Thickness is converted to.

Returns

The type that is created when the type converter converts an instance of Thickness.

Attributes

Exceptions

The value object is not a null reference (Nothing) and is not a Brush, or the destinationType is not one of the valid types for conversion.

The value object is a null reference.

Applies to

See also