Condividi tramite


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)
Available in Sandboxed Solutions: No

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