MonobjcMonobjc Documented Class Library
NSBrowser..::..BrowserShouldSizeColumnForUserResizeToWidthEventHandler Delegate
NamespacesMonobjc.AppKitNSBrowserNSBrowser..::..BrowserShouldSizeColumnForUserResizeToWidthEventHandler

Used to determine a column’s initial size.

Original signature is '- (CGFloat)browser:(NSBrowser *)browser shouldSizeColumn:(NSInteger)columnIndex forUserResize:(BOOL)forUserResize toWidth:(CGFloat)suggestedWidth'

Available in Mac OS X v10.3 and later.

Declaration Syntax
C#Visual BasicVisual C++
public delegate CGFloat BrowserShouldSizeColumnForUserResizeToWidthEventHandler(
	NSBrowser browser,
	NSInteger columnIndex,
	bool forUserResize,
	CGFloat suggestedWidth
)
Public Delegate Function BrowserShouldSizeColumnForUserResizeToWidthEventHandler ( _
	browser As NSBrowser, _
	columnIndex As NSInteger, _
	forUserResize As Boolean, _
	suggestedWidth As CGFloat _
) As CGFloat
public delegate CGFloat BrowserShouldSizeColumnForUserResizeToWidthEventHandler(
	NSBrowser^ browser, 
	NSInteger columnIndex, 
	bool forUserResize, 
	CGFloat suggestedWidth
)
Parameters
browser (NSBrowser)
The browser.
columnIndex (NSInteger)
The index of the column to size.
forUserResize (Boolean)
Currently, this is always set to NO.
suggestedWidth (CGFloat)
The suggested width for the column.
Return Value
The delegate's desired initial width for a newly added column. If you want to accept the suggested width, return suggestedWidth. If you return 0 or a size too small to display the resize handle and a portion of the column, the actual size used will be larger than the size you requested.
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)