TitleStyle Class
Specifies the style characteristics for the title bars of Web Parts controls within a zone.
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 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.