ICustomTypeDescriptor.GetEditor(Type) 方法

定義

傳回元件的這個執行個體之指定類型編輯器。Returns an editor of the specified type for this instance of a component.

public:
 System::Object ^ GetEditor(Type ^ editorBaseType);
public object GetEditor (Type editorBaseType);
abstract member GetEditor : Type -> obj
Public Function GetEditor (editorBaseType As Type) As Object

參數

editorBaseType
Type

表示此物件編輯器的 TypeA Type that represents the editor for this object.

傳回

Object

為此物件之編輯器的指定類型 Object,如果找不到編輯器,則為 nullAn Object of the specified type that is the editor for this object, or null if the editor cannot be found.

備註

參數的類型 editorBaseType 通常是 UITypeEditor ,但您也可以使用其他類型 (例如, ComponentEditor 以及 InstanceCreationEditor) 。The type of the editorBaseType parameter is usually UITypeEditor, but you can also use other types (for example, ComponentEditor and InstanceCreationEditor).

適用於

另請參閱