共用方式為


SPWebPartManager.GetDisplayTitle method

取得字串,包含WebPart控制項的 [ DisplayTitle ] 屬性的值。

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Protected Overrides Function GetDisplayTitle ( _
    webPart As WebPart _
) As String
'用途
Dim webPart As WebPart
Dim returnValue As String

returnValue = Me.GetDisplayTitle(webPart)
protected override string GetDisplayTitle(
    WebPart webPart
)

參數

傳回值

Type: System.String
字串,包含 Web 組件的 [ DisplayTitle ] 屬性的值。

備註

這個覆寫會產生WebPart的顯示標題。如果有一個以上具有相同的標題的 Web 組件,這個覆寫將附加至標題字串以指出序列中的每個網頁組件的括號中括住的數字。

請參閱

參照

SPWebPartManager class

SPWebPartManager members

Microsoft.SharePoint.WebPartPages namespace