GridLengthConverter.CanConvertTo Method (ITypeDescriptorContext, Type)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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

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

Public Overrides Function CanConvertTo (
	typeDescriptorContext As ITypeDescriptorContext,
	destinationType As Type
) As Boolean


Type: System.ComponentModel.ITypeDescriptorContext

Describes the context information of a type.

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