MonobjcMonobjc Documented Class Library
ConfinementRectForMenuOnScreen Method (menu, screen)
NamespacesMonobjc.AppKitINSMenuDelegateConfinementRectForMenuOnScreen(NSMenu, NSScreen)

Invoked to allow the delegate to specify a display location for the menu.

Original signature is '- (NSRect)confinementRectForMenu:(NSMenu *)menu onScreen:(NSScreen *)screen'

Available in Mac OS X v10.6 and later.

Declaration Syntax
C#Visual BasicVisual C++
NSRect ConfinementRectForMenuOnScreen(
	NSMenu menu,
	NSScreen screen
Function ConfinementRectForMenuOnScreen ( _
	menu As NSMenu, _
	screen As NSScreen _
) As NSRect
NSRect ConfinementRectForMenuOnScreen(
	NSMenu^ menu, 
	NSScreen^ screen
menu (NSMenu)
The menu object.
screen (NSScreen)
The screen the menu will open on.
Return Value
The rectangle, in screen coordinates, the menu should be displayed within.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later)

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