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)

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

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.

See also

Reference

SPWebPartManager class

SPWebPartManager members

Microsoft.SharePoint.WebPartPages namespace