MonobjcMonobjc Documented Class Library
PopUpContextMenuWithEventForViewWithFont Method (menu, event, view, font)
NamespacesMonobjc.AppKitNSMenuPopUpContextMenuWithEventForViewWithFont(NSMenu, NSEvent, NSView, NSFont)

Displays a contextual menu over a view for an event using a specified font.

Original signature is '+ (void)popUpContextMenu:(NSMenu *)menu withEvent:(NSEvent *)event forView:(NSView *)view withFont:(NSFont *)font'

Available in Mac OS X v10.3 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static void PopUpContextMenuWithEventForViewWithFont(
	NSMenu menu,
	NSEvent event,
	NSView view,
	NSFont font
)
Public Shared Sub PopUpContextMenuWithEventForViewWithFont ( _
	menu As NSMenu, _
	event As NSEvent, _
	view As NSView, _
	font As NSFont _
)
public:
static void PopUpContextMenuWithEventForViewWithFont(
	NSMenu^ menu, 
	NSEvent^ event, 
	NSView^ view, 
	NSFont^ font
)
Parameters
menu (NSMenu)
The menu object to use for the contextual menu.
event (NSEvent)
An NSEvent object representing the event.
view (NSView)
The view object over which to display the contextual menu.
font (NSFont)
An NSFont object representing the font for the contextual menu. If you pass in nil for the font, the method uses the default font for menu.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)