このコンバータが、コンテキストを使用してオブジェクトを特定の目的の型に変換できるかどうかを示す値を返します。
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 オブジェクト。
戻り値
コンバータが変換を実行できる場合、このメソッドは true を返します。それ以外の場合は false を返します。
必要条件
プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ
参照
ColorConverter クラス | ColorConverter メンバ | System.Drawing 名前空間 | ColorConverter.CanConvertTo オーバーロードの一覧