共用方式為


LayoutEditorPart Web Server Control Overview

The LayoutEditorPart control enables users to edit several layout-oriented user interface (UI) properties of an associated WebPart control.

This topic contains:

  • Background

  • Code Examples

  • Class Reference

Background

The following table lists user-customizable features and corresponding WebPart control property values that are editable by using the AppearanceEditorPart control.

User Customizable Feature

WebPart Control Property

Toggle between minimized and normal state for a WebPart control.

ChromeState

Set the WebPartZoneBase zone that currently contains a WebPart control.

Zone

Set the index position of a WebPart control within its zone.

ZoneIndex

To edit other properties and the behavior of WebPart controls, you can use the other EditorPart controls that are supplied with the Web Parts control set. This includes the BehaviorEditorPart, the LayoutEditorPart, and the PropertyGridEditorPart controls. The built-in EditorPart controls provide the most commonly used features for editing WebPart controls. You can also create a custom editor control by inheriting from the EditorPart class. For a code example, see System.Web.UI.WebControls.WebParts.EditorPart.

Enabling a LayoutEditorPart Control

The LayoutEditorPart control is displayed only when a Web Parts page is in edit mode and when the user has selected an associated WebPart control for editing. For more information, see Walkthrough: Changing Display Modes on a Web Parts Page.

Back to top

Code Examples

Walkthrough: Creating a Web Parts Page

How to: Treat a User Control as a Web Parts Control

How to: Provide Optional Web Parts Controls

How to: Enable Users to Import Web Parts Control Settings

How to: Export Web Parts Control Settings

How to: Build and Run the Data-bound Web Parts Control Example

Walkthrough: Changing Display Modes on a Web Parts Page

How to: Set the Display Mode of a Web Parts Page

Walkthrough: Implementing Web Parts Personalization with a User Control

Walkthrough: Implementing Web Parts Personalization using IPersonalizable

How to: Enable Shared Personalization of Web Parts Pages

How to: Disable Web Parts Personalization

How to: Create Personalizable Properties on a Web Parts Control

How to: Remove User Entries from the Personalization Store

How to: Enable Users to Clear Personalization State

How to: Declare a Static Connection between Two Web Parts Controls

Back to top

Class Reference

Back to top

See Also

Reference

AppearanceEditorPart

System.Web.UI.WebControls.WebParts

BehaviorEditorPart

LayoutEditorPart

PropertyGridEditorPart