Assembly: System.Web (in system.web.dll)
/** @property */ public boolean get_EnableTheming () /** @property */ public void set_EnableTheming (boolean value)
public override function get EnableTheming () : boolean public override function set EnableTheming (value : boolean)
Property ValueA Boolean value that indicates whether themes are enabled. true in all cases.
An attempt was made to set the property value.
The WebPartManager control overrides the base EnableTheming property to ensure that it always returns a value of true. This is done because the Web Parts control set requires the use of themes to render the Web Parts controls that are child controls of the WebPartManager control and that form the user interface (UI) of a Web page. For example, themes are used to render the various zones, and the controls that reside in the zones, including the various types of part controls (controls that inherit from the Part class), user controls, ASP.NET server controls, and custom server controls.
Although the overridden EnableTheming property is implemented as a read/write property in accordance with its base property, you cannot set the property, because by design it must always return a value of true. If you attempt to set the property, a NotSupportedException exception is thrown.
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.