Gets or sets a value indicating whether end users can minimize a WebPart control.
Assembly: System.Web (in System.Web.dll)
[<ThemeableAttribute(false)>] [<PersonalizableAttribute(PersonalizationScope.Shared)>] abstract AllowMinimize : bool with get, set [<ThemeableAttribute(false)>] [<PersonalizableAttribute(PersonalizationScope.Shared)>] override AllowMinimize : bool with get, set
The property, if set to false, prevents an end user from being able to minimize the control, and the user interface (UI) for minimizing the control does not appear in the control's title bar. In Web Parts terminology, when the property is set to false, the minimize verb does not appear on the control's verbs menu.
When a user minimizes a control, it reduces the control's size down to a minimal area that displays only part of the control's title bar and title.
The following code example demonstrates how to change the default setting of the property for a custom Web Parts control, so that the control cannot be minimized by a user. This example assumes the use of a custom WebPart control, TextDisplayWebPart, which is found in the Example section of the WebPart class overview.
In the declarative markup for the Web page, on the <aspSample:TextDisplayWebPart> element that references the control, note the AllowMinimize="false" attribute, which hides the minimize verb in the WebPart control's verbs menu, and prevents a user from being able to minimize the control. Load the page in a browser, and click the verbs menu on the WebPart control. The minimize verb, which would normally be present on the verbs menu, is hidden because you disabled it in the declarative markup for the control.