Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Caption property

WebPart.Caption property

NOTE: This API is now obsolete.

Gets or sets a string that is added following the title in the title bar of the Web Part. This property is intended for document names or other context-specific information.

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

[ObsoleteAttribute("Use Subtitle instead.")]
[WebPartStorageAttribute(Storage.None)]
public string Caption { get; set; }

Property value

Type: System.String
A string value for the text caption that is displayed following the Title property in the title bar. The default value is String.Empty.

The value of its WebPartStorageAttribute is Storage.None, which specifies that the property is not stored.

Show:
© 2015 Microsoft