SPWebPartManager.GetDisplayTitle Method
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
Syntax
'Declaration
Protected Overrides Function GetDisplayTitle ( _
webPart As WebPart _
) As String
'Usage
Dim webPart As WebPart
Dim returnValue As String
returnValue = Me.GetDisplayTitle(webPart)
protected override string GetDisplayTitle(
WebPart webPart
)
Parameters
webPart
Type: System.Web.UI.WebControls.WebParts.WebPartThe 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.
Remarks
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.