SPRibbonMenuItem constructor

Initializes a new instance of an SPRibbonMenuItem object.

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

Syntax

'Declaration
Public Sub New ( _
    text As String, _
    command As SPRibbonCommand, _
    imageUrl As String _
)
'Usage
Dim text As String
Dim command As SPRibbonCommand
Dim imageUrl As String

Dim instance As New SPRibbonMenuItem(text, command, _
    imageUrl)
public SPRibbonMenuItem(
    string text,
    SPRibbonCommand command,
    string imageUrl
)

Parameters

  • imageUrl
    Type: System.String

    The URL of the image to display for the menu item.

See also

Reference

SPRibbonMenuItem class

SPRibbonMenuItem members

Microsoft.SharePoint.WebControls namespace