buildFileSepMenuCtrl(String, ref XElement, String, String, String, Int32, Int32) Method

parses Substrings (filenames in special Folders) contained in nameParts (recursively) of passed xcl config file-path (fullPathName) and adds them to currentBar and sub-menus (recursively)
Namespace: DBaddinAssembly: DBaddin in (DBaddin.dll)

Syntax

private static XElement buildFileSepMenuCtrl(
	string nameParts,
	ref XElement currentBar,
	string fullPathName,
	string newRootName,
	string Folderpath,
	int MenuFolderDepth,
	int specialFolderMaxDepth
	)

Parameters

nameParts
Type: String
tokenized string (separated by space)
currentBar
Type: XElement
current menu element, where sub-menus and buttons are added
fullPathName
Type: String
full path name to xcl config file
newRootName
Type: String
the new root name for the menu, used avoid multiple placement of buttons in sub-menus
Folderpath
Type: String
Path of enclosing Folder(s)
MenuFolderDepth
Type: Int32
required for keeping maxMenuDepth limit
specialFolderMaxDepth
Type: Int32

Returns

XElement
new bar as Xelement (for containment)