MonobjcMonobjc Documented Class Library
ConstrainFrameRectToScreen Method (frameRect, screen)
NamespacesMonobjc.AppKitNSWindowConstrainFrameRectToScreen(NSRect, NSScreen)

Modifies and returns a frame rectangle so that its top edge lies on a specific screen.

Original signature is '- (NSRect)constrainFrameRect:(NSRect)frameRect toScreen:(NSScreen *)screen'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSRect ConstrainFrameRectToScreen(
	NSRect frameRect,
	NSScreen screen
)
Public Overridable Function ConstrainFrameRectToScreen ( _
	frameRect As NSRect, _
	screen As NSScreen _
) As NSRect
public:
virtual NSRect ConstrainFrameRectToScreen(
	NSRect frameRect, 
	NSScreen^ screen
)
Parameters
frameRect (NSRect)
The proposed frame rectangle to adjust.
screen (NSScreen)
The screen on which the top edge of the window’s frame is to lie.
Return Value
The adjusted frame rectangle.
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)