WebPart.EffectiveTitle property

Gets the title of specified the Web Part instance, including any disambiguation information added by the Web Part infrastructure.

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


Public ReadOnly Property EffectiveTitle As String
Dim instance As WebPart
Dim value As String

value = instance.EffectiveTitle
public string EffectiveTitle { get; }

Property value

Type: System.String
A string containing the title of the Web Part including any disambiguation information, such as "WebPart [1]" and "WebPart [2]".


If two Web Parts on the same Web Part Page have the same title, the Web Part infrastructure appends a number after the title. For example, if two or more Web Parts that are named MyWebPart are added to a page, the Web Part infrastructure adds an incremented number in the following format: MyWebPart [1], MyWebPart [2], and so on. You can use the EffectiveTitle property to retrieve the title of a Web Part including this incremented number.

See also


WebPart class

WebPart members

Microsoft.SharePoint.WebPartPages namespace