Adds a submenu to the toolbar.
Namespace:
NetQuarry.WebControls
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax IToolbarButton AddMenu(
string id,
WebControl button,
Object menu,
string caption,
ToolbarItemAttrs attributes,
string additionalImage = null
)
Function AddMenu (
id As String,
button As WebControl,
menu As Object,
caption As String,
attributes As ToolbarItemAttrs,
Optional additionalImage As String = Nothing
) As IToolbarButton
Parameters
- id
- Type: SystemString
The submenu ID. - button
- Type: System.Web.UI.WebControlsWebControl
The submenu button. - menu
- Type: SystemObject
The associated menu. - caption
- Type: SystemString
The submenu caption. - attributes
- Type: NetQuarry.WebControlsToolbarItemAttrs
Attibutes describing the submenu. - additionalImage (Optional)
- Type: SystemString
An optional larger icon.
Return Value
Type:
IToolbarButtonThe toolbar button for the submenu.
See Also