MonobjcMonobjc Documented Class Library
DrawerWillResizeContentsToSize Method (sender, contentSize)
NamespacesMonobjc.AppKitINSDrawerDelegateDrawerWillResizeContentsToSize(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++
NSSize DrawerWillResizeContentsToSize(
	NSDrawer sender,
	NSSize contentSize
Function DrawerWillResizeContentsToSize ( _
	sender As NSDrawer, _
	contentSize As NSSize _
) As NSSize
NSSize DrawerWillResizeContentsToSize(
	NSDrawer^ sender, 
	NSSize contentSize
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)