Export (0) Print
Expand All

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.6, 4.5, 4, 3.5, 3.0, 2.0

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft