property Menu.ToString as String
Saves or loads the menu from a formatted string.

TypeDescription
String A String expression that indicates the list of items.
Use the ToString method to quick load the items from a formatted string. Use the Template property to load the control's data using the x-script template. The ExecuteTemplate property gets the result after executing a template script. 

The following screen shot shows how the control's WYSWYG editor looks like:

The ToString's syntax in BNF notation:

<TOSTRING> ::= <ITEMS>
<ITEMS> ::= <ITEM>["("<ITEMS>")"][","<ITEMS>]
<ITEM> ::= <NAME>[<OPTIONS>]
<OPTIONS> ::= "["<OPTION>"]"["["<OPTIONS>"]"]
<OPTION> ::= <PROPERTY>["="<VALUE>]
<PROPERTY> ::= "id"|"img"|"bg"|"fg"|"edit"|"sep"|"blt"|"chk"|"dis"|"bld"|"itl"|"stk"|"und"

where the <NAME> is the name of the item. The <VALUE> tag is valid for the options "img","id","bg","fg" and "edit", like follows:

Is there any way to get this formatted string from the control's editor? Open the control in design mode, select the Properties item in its context menu, and locate the Editor page, where you find the "Invoke Internal Editor" button, click it, and the control's Editor page is opened. Build your menu. Click an item, so it becomes focused, and press the CTRL + C, a beep should be hear. Now, open a notepad editor, and press CTRL + V, you should get the formatted string for ToString method. Click the designer, so no item is focused, and press the CTRL + C key, and so the entire menu is copied to the clipboard, as ToString syntax.

For instance, the following formatted string builds the following menu:

A[id=10](B[id=20],C[id=30](D[id=40],E[id=50]),F[id=60])