語言

GridLengthConverter.CanConvertTo(ITypeDescriptorContext, Type) 方法

定義

判斷 的 GridLength 實例是否能轉換成其他類型。

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

參數

typeDescriptorContext
ITypeDescriptorContext

描述一種類型的上下文資訊。

destinationType
Type

這個實例 GridLength 正在評估轉換的目標類型。

傳回

true 如果轉換器能將此實例 GridLength 轉換為指定類型;否則, false。

備註

GridLengthConverter支援以下類型String之間的轉換:、Decimal、SingleDoubleInt16Int32Int64UInt16UInt32UInt64。

適用於

另請參閱