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: Stringtokenized string (separated by space)
- currentBar
- Type: XElementcurrent menu element, where sub-menus and buttons are added
- fullPathName
- Type: Stringfull path name to xcl config file
- newRootName
- Type: Stringthe new root name for the menu, used avoid multiple placement of buttons in sub-menus
- Folderpath
- Type: StringPath of enclosing Folder(s)
- MenuFolderDepth
- Type: Int32required for keeping maxMenuDepth limit
- specialFolderMaxDepth
- Type: Int32
Returns
XElement
new bar as Xelement (for containment)