コード例 #1
0
 /// <summary>
 /// Set a child menu for this item. See the menu configuration.
 /// </summary>
 /// <param name="menu">A menu, or menu configuration. null may be passed to remove the menu.</param>
 public virtual void SetMenu(MenuBase menu)
 {
     this.Call("setMenu", menu != null ? menu.ToConfig() : null);
 }
コード例 #2
0
 /// <summary>
 /// Set a child menu for this item. See the menu configuration.
 /// </summary>
 /// <param name="menu">A menu, or menu configuration. null may be passed to remove the menu.</param>
 public virtual void SetMenu(MenuBase menu)
 {
     this.Call("setMenu", menu != null ? menu.ToConfig() : null);
 }
コード例 #3
0
 /// <summary>
 /// Set a child menu for this item. See the menu configuration.
 /// </summary>
 /// <param name="menu">A menu, or menu configuration. null may be passed to remove the menu.</param>
 /// <param name="destroyMenu">True to destroy any existing menu. False to prevent destruction. If not specified, the destroyMenu configuration will be used.</param>
 public virtual void SetMenu(MenuBase menu, bool destroyMenu)
 {
     this.Call("setMenu", menu != null ? menu.ToConfig() : null, destroyMenu);
 }
コード例 #4
0
 /// <summary>
 /// Set a child menu for this item. See the menu configuration.
 /// </summary>
 /// <param name="menu">A menu, or menu configuration. null may be passed to remove the menu.</param>
 /// <param name="destroyMenu">True to destroy any existing menu. False to prevent destruction. If not specified, the destroyMenu configuration will be used.</param>
 public virtual void SetMenu(MenuBase menu, bool destroyMenu)
 {
     this.Call("setMenu", menu != null ? menu.ToConfig() : null, destroyMenu);
 }