Επεξεργασία

Κοινή χρήση μέσω


EditorZone.CreateEditorParts Method

Definition

Creates all the EditorPart controls declared within a zone template in page persistence format.

protected:
 override System::Web::UI::WebControls::WebParts::EditorPartCollection ^ CreateEditorParts();
protected override System.Web.UI.WebControls.WebParts.EditorPartCollection CreateEditorParts ();
override this.CreateEditorParts : unit -> System.Web.UI.WebControls.WebParts.EditorPartCollection
Protected Overrides Function CreateEditorParts () As EditorPartCollection

Returns

An EditorPartCollection that contains references to all the EditorPart controls declared within the zone template.

Exceptions

The current EditorPart control does not have an ID.

Remarks

The CreateEditorParts method overrides the base method to create only the EditorPart controls that are declared within the zone template. Any other EditorPart controls added to the zone must be added programmatically. This can be done, for example, by implementing the IWebEditable interface in a WebPart control. Then, in the overridden CreateEditorParts method, you can add a collection of custom EditorPart controls to a zone.

Applies to

See also