Menu.RegisterItem Method (Typed) | ![X#](../icons/logo100.jpg) |
Register the hyperlabel for this menu item.
Namespace:
XSharp.VO.SDK
Assembly:
XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.19
Syntax VIRTUAL METHOD RegisterItem(
nItemID AS USUAL,
oHyperLabel AS HyperLabel,
hParentMenu AS VOMenu,
nPosition AS LONG
) AS LOGIC
public virtual bool RegisterItem(
Usual nItemID,
[DefaultParameterValueAttribute(null, 0)] HyperLabel oHyperLabel,
[DefaultParameterValueAttribute(null, 0)] VOMenu hParentMenu,
[DefaultParameterValueAttribute(-1, 0)] int nPosition
)
Request Example
View SourceParameters
- nItemID
- Type: Usual
The ID of the menu item. - oHyperLabel
- Type: HyperLabel
The hyperlabel to be registered for the menu item. - hParentMenu
- Type: VOMenu
The handle of the menu item being registered. This parameter is only required if the registered item contains a submenu. - nPosition
- Type: Long
The offset of menu item being registered.
The offset of the submenu of the menu item being registered. (For example, if a menu contains the items 'File', 'Edit', and 'View' and the offset is 1, the Edit submenu will be registered with the Edit menu item.) This parameter is only required if the registered item contains a submenu.
Return Value
Type:
Logic
See Also