Click or drag to resize
CMSUIPageCountMenuLevels Method
Calculates number of menus between two elements.

Namespace: CMS.UIControls
Assembly: CMS.UIControls (in CMS.UIControls.dll) Version: 8.2.23
Syntax
C#
public static int CountMenuLevels(
	UIElementInfo target,
	UIElementInfo source
)

Parameters

target
Type: CMS.ModulesUIElementInfo
Target element (child)
source
Type: CMS.ModulesUIElementInfo
Source element (parent)

Return Value

Type: Int32
See Also