Export (0) Print
Expand All

WebPart.CreateEditorParts Method

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

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

public virtual EditorPartCollection CreateEditorParts ()
public EditorPartCollection CreateEditorParts ()
public function CreateEditorParts () : EditorPartCollection
Not applicable.

Return Value

An EditorPartCollection that contains custom EditorPart controls associated with a WebPart control.

Developers can use this method to create instances of custom EditorPart controls that they want to associate with a WebPart control. The method is called when a user clicks the edit verb on a WebPart control.

NoteNote:

Any new instance of an EditorPart control that is created in this method must have a value assigned to its ID property before it can be added to the EditorParts collection.

For a code example that uses the CreateEditorParts method, see the EditorPart class overview.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, 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

Community Additions

ADD
Show:
© 2014 Microsoft