WebZone.PartStyle Property

Note: This property is new in the .NET Framework version 2.0.

Gets style characteristics that apply to the border and contents of each Web Parts control contained by a zone.

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

public:
property TableStyle^ PartStyle {
	TableStyle^ get ();
}
/** @property */
public TableStyle get_PartStyle ()

public function get PartStyle () : TableStyle

Property Value

A TableStyle that contains style attributes for the Web Parts controls in the zone.

The style attributes apply to the border and contents of every Web Parts control in a zone. This property is read-only; however, you can set the properties of the TableStyle object it returns. This property enables you to provide a consistent style for the contents of all the controls a zone contains.

The following code example demonstrates the use of the PartStyle property. Note that in the zone referenced in the declarative markup, there is an <asp:calendar> element and an <asp:literal> element, with both controls acting as Web Parts controls at run time because they are in a zone. After the user clicks a date on the calendar control, the page programmatically uses the PartStyle property to change the background color of all part controls in the zone to red.

No code example is currently available or this language may not be supported.

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.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show: