System.Web.UI.WebControls.WebParts.WebPart.Title Property

Gets or sets the title of a part control.

Syntax

public override string Title { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

If a developer assigns a value to the WebPart.Title property, then that value determines all (or at least part of) the text in the control's title bar. The title text also appears as part of the ToolTip text when you position your mouse pointer over the title bar of a System.Web.UI.WebControls.WebParts.WebPart control or other server control that appears in a System.Web.UI.WebControls.WebParts.WebPartZone zone.

The complete text displayed in a control's title bar is also affected by the WebPart.Subtitle property. If that property has a value assigned to it, the value is concatenated to the title. If no value is assigned to the WebPart.Title property, a calculated title is displayed. At any point, developers can retrieve the actual, total text displayed in a System.Web.UI.WebControls.WebParts.WebPart control's title bar by getting the value of the WebPart.DisplayTitle property.

The style of the title text is determined by the WebZone.PartTitleStyle property of the zone that contains the part control.

For a code example that demonstrates the use of the base property, see the Part.Title property.

Requirements

Namespace: System.Web.UI.WebControls.WebParts
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0