WebPartDisplayMode.AssociatedWithToolZone Property

Gets a value that indicates whether a certain display mode is associated with a class that derives from the ToolZone class.

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

public:
virtual property bool AssociatedWithToolZone {
	bool get ();
}
/** @property */
public boolean get_AssociatedWithToolZone ()

public function get AssociatedWithToolZone () : boolean

Not applicable.

Property Value

true if the display mode is associated with a ToolZone class; otherwise, false. The default is false.

When a Web Parts page enters a display mode whose AssociatedWithToolZone property is set to true, the WebPartManager control interprets that to mean that an associated class derives from the ToolZone class, and that additional user interface (UI) elements need to be displayed. For example, when a page enters edit mode, special zones that contain UI elements for editing Web Parts controls appear on the page. This behavior is made possible because the AssociatedWithToolZone property value on the EditDisplayMode field is set to true.

Notes to Inheritors: Classes that derive from the WebPartDisplayMode base class to create custom display modes must override the AssociatedWithToolZone property in order to set its value.

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: