Share via


MenuItem.Caption property

Gets or sets the text caption that is displayed for the menu item.

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

Syntax

'Declaration
Public Property Caption As String
    Get
    Set
'Usage
Dim instance As MenuItem
Dim value As String

value = instance.Caption

instance.Caption = value
public string Caption { get; set; }

Property value

Type: System.String
A string that represents the text caption of the menu item.

See also

Reference

MenuItem class

MenuItem members

Microsoft.SharePoint.WebPartPages namespace