編輯

共用方式為


CornerRadiusConverter.ConvertTo Method

Definition

Converts the specified CornerRadius to the 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

Describes the context information of a type.

cultureInfo
CultureInfo

Describes the CultureInfo of the type being converted.

value
Object

The CornerRadius to convert.

destinationType
Type

The type to convert the CornerRadius to.

Returns

The object created from converting this CornerRadius (a string).

Attributes

Exceptions

value is null.

value is not null and is not a Brush, or if destinationType is not one of the valid destination types.

Remarks

destinationType must be String.

Applies to