This documentation is archived and is not being maintained.
BaseDataListComponentEditor::EditComponent Method (ITypeDescriptorContext, Object, IWin32Window)
Visual Studio 2010
Edits the specified component by using the specified context descriptor and parent window.
Assembly: System.Design (in System.Design.dll)
public: virtual bool EditComponent( ITypeDescriptorContext^ context, Object^ obj, IWin32Window^ parent ) override
Parameters
- context
- Type: System.ComponentModel::ITypeDescriptorContext
An ITypeDescriptorContext object that can be used to gain additional context information.
- obj
- Type: System::Object
An Object implementing the IComponent, which represents the component to edit.
- parent
- Type: System.Windows.Forms::IWin32Window
The IWin32Window that represents the parent window.
The EditComponent method gets a Type array of page control types by using the GetComponentEditorPages method. It creates a ComponentEditorForm object, and then calls its ShowForm method to display the component editor.
Notes to ImplementersThe GetComponentEditorPages method must have been overridden to return a Type array of page control types. This array must exist in order for the EditComponent method to succeed.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: