BaseDataListComponentEditor.EditComponent Method (ITypeDescriptorContext, Object, IWin32Window)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Edits the specified component by using the specified context descriptor and parent window.

Namespace:   System.Web.UI.Design.WebControls
Assembly:  System.Design (in System.Design.dll)

public override bool EditComponent(
	ITypeDescriptorContext context,
	object obj,
	IWin32Window parent


Type: System.ComponentModel.ITypeDescriptorContext

An ITypeDescriptorContext object that can be used to gain additional context information.

Type: System.Object

An Object implementing the IComponent, which represents the component to edit.

Type: System.Windows.Forms.IWin32Window

The IWin32Window that represents the parent window.

Return Value

Type: System.Boolean

true the component was successfully edited; otherwise, false.

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 Implementers:

The 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.

.NET Framework
Available since 1.1
Return to top