2 out of 2 rated this helpful - Rate this topic

SPWebPartManager.GetDisplayTitle Method

SharePoint 2010

Gets a string that contains the value for the DisplayTitle property of a WebPart control.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
protected override string GetDisplayTitle(
	WebPart webPart
)

Parameters

webPart
Type: System.Web.UI.WebControls.WebParts.WebPart
The Web Part for which the method returns the value of DisplayTitle.

Return Value

Type: System.String
A string that contains the value for the DisplayTitle property of a Web Part.

This override produces the display title for a WebPart. If there are more than one Web Parts that have the same title, this override will append a number that is enclosed in brackets to the title string to indicate each Web Part in sequence.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ