指定したコンポーネントで使用され、カスタムの型記述子が関連付けられている、指定した基本型のエディタを取得します。
Overloads Public Shared Function GetEditor( _
ByVal component As Object, _ ByVal editorBaseType As Type, _ ByVal noCustomTypeDesc As Boolean _) As Object
[C#]
public static object GetEditor(objectcomponent,TypeeditorBaseType,boolnoCustomTypeDesc);
[C++]
public: static Object* GetEditor(Object* component,Type* editorBaseType,boolnoCustomTypeDesc);
[JScript]
public static function GetEditor(
component : Object,editorBaseType : Type,noCustomTypeDesc : Boolean) : Object;
パラメータ
- component
エディタを取得する対象のコンポーネント。 - editorBaseType
検索するエディタの基本型を表す Type 。 - noCustomTypeDesc
ICustomTypeDescriptor のインスタンスが TypeDescriptor を呼び出す場合は true 。それ以外の場合は false 。
戻り値
指定したエディタ型にキャストできるエディタのインスタンス。要求した型のエディタが見つからなかった場合は、 null 参照 (Visual Basic では Nothing) を返します。
例外
例外の種類 | 条件 |
---|---|
ArgumentNullException | component パラメータが null 参照 (Visual Basic では Nothing) です。 |
解説
1 つのプロパティに対して複数のエディタを定義できます。このメソッドを使用して、使用するエディタを選択します。
必要条件
プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ
参照
TypeDescriptor クラス | TypeDescriptor メンバ | System.ComponentModel 名前空間 | TypeDescriptor.GetEditor オーバーロードの一覧 | TypeDescriptor | EventDescriptor | PropertyDescriptor | ICustomTypeDescriptor