この IconConverter が、指定したコンテキストを使用して、 Icon を指定した型のインスタンスに変換できるかどうかを決定します。
Overrides Overloads Public Function CanConvertTo( _
ByVal context As ITypeDescriptorContext, _ ByVal destinationType As Type _) As Boolean
[C#]
public override bool CanConvertTo(ITypeDescriptorContextcontext,TypedestinationType);
[C++]
public: bool CanConvertTo(ITypeDescriptorContext* context,Type* destinationType);
[JScript]
public override function CanConvertTo(
context : ITypeDescriptorContext,destinationType : Type) : Boolean;
パラメータ
- context
書式指定コンテキストを提供する ITypeDescriptorContext 。 - destinationType
変換後の型を指定する Type 。
戻り値
このメソッドは、 IconConverter が変換を実行できる場合は true を返します。それ以外の場合は false を返します。
解説
このメソッドは、 destinationType が typeof(System.Byte[]) または typeof(System.String) に等しい場合にだけ、 true を返します。
必要条件
プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ
参照
IconConverter クラス | IconConverter メンバ | System.Drawing 名前空間 | IconConverter.CanConvertTo オーバーロードの一覧