Name
WindowsFormsComponentEditor
Synopsis
This class provides the abstract base for classes that provide a modal dialog that displays tab pages of settings, similar to a Win32 PropertySheet.
The EditComponent() method displays an editor
window that contains the pages obtained from the protected
GetComponentEditorPages() method. The protected
GetInitialComponentEditorPageIndex() retrieves
the index of the page in the list that should be displayed by
default.
For example,
System.Windows.Forms.AxHost.AxComponentEditor
derives from this class to display the OLE Property Pages for the
hosted ActiveX control.
public abstract class WindowsFormsComponentEditor : System.ComponentModel.ComponentEditor { // Protected Constructors protected WindowsFormsComponentEditor(); // Public Instance Methods public override bool EditComponent(System.ComponentModel.ITypeDescriptorContext context, // overrides System.ComponentModel.ComponentEditor public virtual bool EditComponent(System.ComponentModel.ITypeDescriptorContext context, object component, System.Windows.Forms.IWin32Window owner); public bool EditComponent(object component, System.Windows.Forms.IWin32Window owner); // Protected Instance Methods protected virtual Type[ ] GetComponentEditorPages(); protected virtual int GetInitialComponentEditorPageIndex(); }
Hierarchy
System.Object
→ System.ComponentModel.ComponentEditor → WindowsFormsComponentEditor
Subclasses
System.Windows.Forms.AxComponentEditor
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access