TitleStyle Class
Assembly: System.Web (in system.web.dll)
The TitleStyle class is used with zones to specify common style characteristics that apply to the title bars of Web Parts controls within the zones. The PartTitleStyle property contains a reference to a TitleStyle object for each zone.
A title bar for a control is rendered at run time as an HTML table cell. Because the TitleStyle class inherits from the TableItemStyle class, it allows you to set stylistic attributes for a title bar similar to the attributes for any table cell.
The following code example demonstrates the declarative use of the TitleStyle class. In the code for the following page, an <asp:calendar> element and an <asp:label> element appear within a zone, giving the corresponding controls genuine Web Parts functionality at run time. Notice that the <parttitlestyle> element, which contains several style attributes, applies to the title bars of both Web Parts controls contained within the zone.
- AspNetHostingPermission for operating in a hosted environment. Demand value: LinkDemand; Permission value: Minimal.
System.MarshalByRefObject
System.ComponentModel.Component
System.Web.UI.WebControls.Style
System.Web.UI.WebControls.TableItemStyle
System.Web.UI.WebControls.WebParts.TitleStyle
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.