Compartir a través de


WebPart.Title Property

Gets or sets the title that appears in the title bar of a Web Part.

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

Syntax

<WebPartStorageAttribute(Storage := Storage.Personal)> _
Public Overrides Property Title As String
    Get
    Set

Dim instance As WebPart
Dim value As String

value = instance.Title

instance.Title = value
[WebPartStorageAttribute(Storage = Storage.Personal)]
public override string Title { get; set; }

Property Value

Type: System.String
A string that specifies the title of the Web Part. The default value is System.Empty.

Implements

IWebPart.Title

Remarks

This property can be personalized by individual users. Its WebPartStorageAttribute value is Storage.Personal, which specifies that the property can be stored on a per-user basis. Only users with the Personalize Web Part pages right can set this property. It can be set programmatically, or it can be set through the Web Part task pane in the personal view of the Web-based user interface, or by using a Windows SharePoint Services–compatible HTML editor, such as Microsoft Office SharePoint Designer 2007.

See Also

Reference

WebPart Class

WebPart Members

Microsoft.SharePoint.WebPartPages Namespace