buildFileSepMenuCtrl(String, ref XElement, ToolStripMenuItem, String, String, String, Int32, Int32, ref MenuClassStruct) Method
parses Substrings (filenames in special Folders) contained in nameParts (recursively) of passed xcl config file-path (fullPathName) and adds them to currentBar/currentStrip and sub-menus (recursively)
Namespace: DBaddinAssembly: DBaddin in (DBaddin.dll)
Syntax
private static void buildFileSepMenuCtrl( string nameParts, ref XElement currentBar, ToolStripMenuItem currentStrip, string fullPathName, string newRootName, string Folderpath, int MenuFolderDepth, int specialFolderMaxDepth, ref MenuClassStruct returnedBar )
Parameters
- nameParts
- Type: Stringtokenized string (separated by space)
- currentBar
- Type: XElementcurrent menu element, where sub-menus and buttons are added
- currentStrip
- Type: ToolStripMenuItemcurrent context menu tool-strip 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
- returnedBar
- Type: MenuClassStructreturned combined container (MenuClassStruct) of Xelement/ribbon bar and ToolStripMenuItem/context menu item for containment in next menu entry (see readAllFiles)