Edytuj

Udostępnij za pośrednictwem


GridLengthConverter.CanConvertTo(ITypeDescriptorContext, Type) Method

Definition

Determines whether an instance of GridLength can be converted to a different type.

public:
 override bool CanConvertTo(System::ComponentModel::ITypeDescriptorContext ^ typeDescriptorContext, Type ^ destinationType);
public override bool CanConvertTo (System.ComponentModel.ITypeDescriptorContext typeDescriptorContext, Type destinationType);
override this.CanConvertTo : System.ComponentModel.ITypeDescriptorContext * Type -> bool
Public Overrides Function CanConvertTo (typeDescriptorContext As ITypeDescriptorContext, destinationType As Type) As Boolean

Parameters

typeDescriptorContext
ITypeDescriptorContext

Describes the context information of a type.

destinationType
Type

The desired type that this instance of GridLength is being evaluated for conversion.

Returns

true if the converter can convert this instance of GridLength to the specified type; otherwise, false.

Remarks

GridLengthConverter supports conversion to and from the following types: String, Decimal, Single, Double, Int16, Int32, Int64, UInt16, UInt32, UInt64.

Applies to

See also