Table of Contents

Constructor ContextMenu

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

ContextMenu()

Initializes a context menu with no menu items.

public ContextMenu()

ContextMenu(View, MenuBarItem)

Initializes a context menu, with a View specifiying the parent/hose of the menu.

public ContextMenu(View host, MenuBarItem menuItems)

Parameters

host View

The host view.

menuItems MenuBarItem

The menu items for the context menu.

ContextMenu(int, int, MenuBarItem)

Initializes a context menu with menu items at a specific screen location.

public ContextMenu(int x, int y, MenuBarItem menuItems)

Parameters

x int

The left position (screen relative).

y int

The top position (screen relative).

menuItems MenuBarItem

The menu items.