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
text
Type: System.StringThe text of the menu item.
command
Type: Microsoft.SharePoint.WebControls.SPRibbonCommandThe command to execute for the menu item.
imageUrl
Type: System.StringThe URL of the image to display for the menu item.