RibbonControlLengthConverter.CanConvertTo 方法

定義

判斷RibbonControlLength 結構的執行個體是否可轉換為指定類型的執行個體。

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

參數

context
ITypeDescriptorContext

提供格式內容的物件。

destinationType
Type

要轉換的目標類型。

傳回

Boolean

如果這個轉換子可以執行轉換,則為 true,否則為 false

適用於