MonobjcMonobjc Documented Class Library
MenuForEventInRectOfView Method (anEvent, cellFrame, aView)
NamespacesMonobjc.AppKitNSCellMenuForEventInRectOfView(NSEvent, NSRect, NSView)

Returns the menu associated with the receiver and related to the specified event and frame.

Original signature is '- (NSMenu *)menuForEvent:(NSEvent *)anEvent inRect:(NSRect)cellFrame ofView:(NSView *)aView'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSMenu MenuForEventInRectOfView(
	NSEvent anEvent,
	NSRect cellFrame,
	NSView aView
)
Public Overridable Function MenuForEventInRectOfView ( _
	anEvent As NSEvent, _
	cellFrame As NSRect, _
	aView As NSView _
) As NSMenu
public:
virtual NSMenu^ MenuForEventInRectOfView(
	NSEvent^ anEvent, 
	NSRect cellFrame, 
	NSView^ aView
)
Parameters
anEvent (NSEvent)
The event used to find the menu.
cellFrame (NSRect)
The cell's rectangle. This rectangle indicates the region containing the cursor.
aView (NSView)
The view that manages the receiver. This is usually the control object that owns the cell.
Return Value
The menu associated with the cell and event parameters, or nil if no menu is set.
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)