This documentation is archived and is not being maintained.

GenericWebPart::CreateEditorParts Method

Returns a collection of custom EditorPart controls that can be used to edit the child control of a GenericWebPart control when it is in edit mode.

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

public:
virtual EditorPartCollection^ CreateEditorParts() override

Return Value

Type: System.Web.UI.WebControls.WebParts::EditorPartCollection
An EditorPartCollection that contains custom EditorPart controls associated with a server control.

Implements

IWebEditable::CreateEditorParts()

The CreateEditorParts method is called when a control enters edit display mode. This method overrides the base method inherited from the WebPart class because, in the case of a GenericWebPart control, it is the child control that is being edited, not the GenericWebPart control itself. The CreateEditorParts method casts the child control to the IWebEditable interface, which enables the control to be edited.

This overridden method is what enables server controls that do not derive from the WebPart class--including ASP.NET server controls, and custom server controls--to be edited as normal WebPart controls.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0
Show: