MainMenuBottomItem
interface cAlgo.API Since 5.4
DesktopCLICloud
Represents a bottom item in main menu.
Environment behaviour
CLI — not supported. Available to plugins only, and plugins cannot run in the CLI.
Cloud — not supported. Available to plugins only, and plugins cannot run in the cloud.
Definition
public interface MainMenuBottomItem
Namespace: cAlgo.API · Group: MainMenu
Examples
var icon = new SvgIcon("<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><circle cx='8' cy='8' r='6' fill='#2F4BFF' /></svg>");
MainMenuBottomItem bottomItem = MainMenu.AddBottomItem("My Action", icon);
if (bottomItem is MainMenuBottomCustomItem customBottomItem)
Print("Bottom item name: {0}", customBottomItem.Name);
icon = SvgIcon("<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><circle cx='8' cy='8' r='6' fill='#2F4BFF' /></svg>")
bottomItem = api.MainMenu.AddBottomItem("My Action", icon)
api.Print(f"Bottom item name: {bottomItem.Name}")