WebPart.Caption 属性
请注意:此 API 现在已过时。
获取或设置一个 string,添加以下 Web 部件的标题栏中的标题。此属性适用于文档的名称或其他特定于的上下文信息。
命名空间: Microsoft.SharePoint.WebPartPages
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
<ObsoleteAttribute("Use Subtitle instead.")> _
<WebPartStorageAttribute(Storage.None)> _
Public Property Caption As String
Get
Set
用法
Dim instance As WebPart
Dim value As String
value = instance.Caption
instance.Caption = value
[ObsoleteAttribute("Use Subtitle instead.")]
[WebPartStorageAttribute(Storage.None)]
public string Caption { get; set; }
属性值
类型:System.String
关注的Title属性的标题栏中显示的文本标题string值。默认值是String.Empty。
备注
WebPartStorageAttribute其值为Storage.None,用于指定属性不存储。