指定したコンポーネントで使用される、指定した基本型のエディタを取得します。
Overloads Public Shared Function GetEditor( _
ByVal component As Object, _ ByVal editorBaseType As Type _) As Object
[C#]
public static object GetEditor(objectcomponent,TypeeditorBaseType);
[C++]
public: static Object* GetEditor(Object* component,Type* editorBaseType);
[JScript]
public static function GetEditor(
component : Object,editorBaseType : Type) : Object;
パラメータ
- component
エディタを取得する対象のコンポーネント。 - editorBaseType
検索するエディタの基本型を表す Type 。
戻り値
指定したエディタ型にキャストできるエディタのインスタンス。要求した型のエディタが見つからなかった場合は、 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