SPWebPartManager.GetDisplayTitle Method
SharePoint 2010
Gets a string that contains the value for the DisplayTitle property of a WebPart control.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
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.StringA 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.