GridLengthConverter::CanConvertTo Method (ITypeDescriptorContext^, Type^)

 

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

Namespace:   System.Windows
Assembly:  PresentationFramework (in PresentationFramework.dll)

public:
virtual bool CanConvertTo(
	ITypeDescriptorContext^ typeDescriptorContext,
	Type^ destinationType
) override

Parameters

typeDescriptorContext
Type: System.ComponentModel::ITypeDescriptorContext^

Describes the context information of a type.

destinationType
Type: System::Type^

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

Return Value

Type: System::Boolean

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

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

.NET Framework
Available since 3.0
Return to top
Show: