MonobjcMonobjc Documented Class Library
ContentRectForFrameRectStyleMask Method (windowFrame, windowStyle)
NamespacesMonobjc.AppKitNSWindowContentRectForFrameRectStyleMask(NSRect, NSWindowStyleMask)

Returns the content rectangle used by a window with a given frame rectangle and window style.

Original signature is '+ (NSRect)contentRectForFrameRect:(NSRect)windowFrame styleMask:(NSUInteger)windowStyle'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static NSRect ContentRectForFrameRectStyleMask(
	NSRect windowFrame,
	NSWindowStyleMask windowStyle
)
Public Shared Function ContentRectForFrameRectStyleMask ( _
	windowFrame As NSRect, _
	windowStyle As NSWindowStyleMask _
) As NSRect
public:
static NSRect ContentRectForFrameRectStyleMask(
	NSRect windowFrame, 
	NSWindowStyleMask windowStyle
)
Parameters
windowFrame (NSRect)
The frame rectangle for the window expressed in screen coordinates.
windowStyle (NSWindowStyleMask)
The window style for the window. See “Constants” for a list of style mask values.
Return Value
The content rectangle, expressed in screen coordinates, used by the window with windowFrame and windowStyle.
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)