Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

WebPart.DisplayTitle Property

Gets a string that contains the full title text actually displayed in the title bar of a WebPart control instance.

Namespace:  System.Web.UI.WebControls.WebParts
Assembly:  System.Web (in System.Web.dll)
[BrowsableAttribute(false)]
public string DisplayTitle { get; }

Property Value

Type: System.String
A string that represents the complete, displayed title of the control. The default value is an empty string ("").

The DisplayTitle property returns either the current value of the Title property or, if the control has no title, a calculated value. The calculated value consists of a localizable resource string for untitled controls, plus (if there are multiple controls within the zone) a number based on the index of the control within the zone.

For custom WebPart controls where the Subtitle property has been overridden to return a string value to use as a subtitle, the DisplayTitle property is concatenated with the subtitle to produce a complete title.

The DisplayTitle property value also serves as part of a ToolTip that appears when a user positions the mouse pointer over the title bar of a control. The full ToolTip consists of the DisplayTitle value, followed by a hyphen, followed by the value of the control's Description property.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.