MonobjcMonobjc Documented Class Library
DrawerWillResizeContentsToSizeMessage Method (sender, contentSize)
NamespacesMonobjc.AppKitNSDrawer..::..NSDrawerDelegateEventDispatcherDrawerWillResizeContentsToSizeMessage(NSDrawer, NSSize)

Invoked when the user resizes the drawer or parent.

Original signature is '- (NSSize)drawerWillResizeContents:(NSDrawer *)sender toSize:(NSSize)contentSize'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public NSSize DrawerWillResizeContentsToSizeMessage(
	NSDrawer sender,
	NSSize contentSize
)
Public Function DrawerWillResizeContentsToSizeMessage ( _
	sender As NSDrawer, _
	contentSize As NSSize _
) As NSSize
public:
NSSize DrawerWillResizeContentsToSizeMessage(
	NSDrawer^ sender, 
	NSSize contentSize
)
Parameters
sender (NSDrawer)
The drawer being resized.
contentSize (NSSize)
The proposed new size of the drawer.
Return Value
The size that the drawer should be resized to. To resize to a different size, simply return the desired size from this method; to avoid resizing, return the current size.
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)