Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CreateWebPartChrome Method

WebPartZoneBase.CreateWebPartChrome Method

Note: This method is new in the .NET Framework version 2.0.

Enables derived zones to substitute a custom WebPartChrome object to change the appearance of WebPart controls in a zone.

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

protected virtual WebPartChrome CreateWebPartChrome ()
protected WebPartChrome CreateWebPartChrome ()
protected function CreateWebPartChrome () : WebPartChrome

Return Value

A WebPartChrome that determines how WebPart controls in a zone are rendered.

Web Parts chrome refers to the peripheral user interface (UI) elements that frame each WebPart control in a zone. The chrome for a WebPart control includes its border, its title bar, and the icons, title text, and verbs menu that appear within the title bar. The appearance of the chrome is set at the zone level, and applies to all WebPart controls in a zone.


The WebPartChrome object affects the entire rendering of the WebPart controls, not merely their chrome elements.

To use the CreateWebPartChrome method, you must create a custom WebPartChrome object to define the appearance of the chrome for Web Parts controls in a zone. You must also create a custom zone that inherits from the WebPartZoneBase class and overrides the CreateWebPartChrome method to be able to substitute your custom chrome object and apply it to the controls in the zone.

Windows 98, Windows 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 .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

© 2015 Microsoft