Cicode Programming Reference > Cicode Function Categories > Menu Functions > MenuNodeGetDepth

MenuNodeGetDepth

Returns the depth of a specified menu node within a menu hierarchy.

Syntax

MenuNodeGetDepth(hNode)

hNode:

Handle of the menu node.

Return Value

The depth of the specified node within the menu hierarchy. For example, 0 indicates it is on the root node of the menu, 1 indicates one level below the root node, and so on.

Related Functions

MenuGetChild, MenuGetFirstChild, MenuGetGenericNode, MenuGetNextChild, MenuGetPageNode, MenuGetParent, MenuGetPrevChild, MenuGetWindowNode, MenuNodeAddChild, MenuNodeGetCurr, MenuNodeGetExpanded, MenuNodeGetProperty, MenuNodeGetTargetPage, MenuNodeHasCommand, MenuNodeIsDisabled, MenuNodeIsHidden, MenuNodeRemove, MenuNodeRunCommand, MenuNodeSetDisabledWhen, MenuNodeSetHiddenWhen, MenuNodeSetProperty, MenuReload

See Also

Menu Functions

Published June 2018