BaseDataListComponentEditor.EditComponent Method (ITypeDescriptorContext, Object, IWin32Window)

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:
virtual bool EditComponent (
	ITypeDescriptorContext^ context, 
	Object^ obj, 
	IWin32Window^ parent
) override
public boolean EditComponent (
	ITypeDescriptorContext context, 
	Object obj, 
	IWin32Window parent
)
public override function EditComponent (
	context : ITypeDescriptorContext, 
	obj : Object, 
	parent : IWin32Window
) : boolean
Not applicable.

Parameters

context

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

obj

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

parent

The IWin32Window that represents the parent window.

Return Value

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.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show: