Adds a submenu to the toolbar.
Namespace:
NetQuarry.WebControls
Assembly:
EAP.WebControls (in EAP.WebControls.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public IToolbarButton AddMenu(
string id,
WebControl button,
Object menu,
string caption,
ToolbarItemAttrs attributes,
string additionalImage = null
)
Public 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.
Implements
IToolbarAddMenu(String, WebControl, Object, String, ToolbarItemAttrs, String)See Also