MonobjcMonobjc Documented Class Library
BrowserSizeToFitWidthOfColumnMessage Method (browser, columnIndex)
NamespacesMonobjc.AppKitNSBrowser..::..NSBrowserDelegateEventDispatcherBrowserSizeToFitWidthOfColumnMessage(NSBrowser, NSInteger)

Returns the ideal width for a column.

Original signature is '- (CGFloat)browser:(NSBrowser *)browser sizeToFitWidthOfColumn:(NSInteger)columnIndex'

Available in Mac OS X v10.3 and later.

Declaration Syntax
C#Visual BasicVisual C++
public CGFloat BrowserSizeToFitWidthOfColumnMessage(
	NSBrowser browser,
	NSInteger columnIndex
Public Function BrowserSizeToFitWidthOfColumnMessage ( _
	browser As NSBrowser, _
	columnIndex As NSInteger _
) As CGFloat
CGFloat BrowserSizeToFitWidthOfColumnMessage(
	NSBrowser^ browser, 
	NSInteger columnIndex
browser (NSBrowser)
The browser.
columnIndex (NSInteger)
The index of the column to size. If -1, the result is used to resize all columns.
Return Value
The ideal width of the column. This method is used when performing a “right-size” operation, that is, when sizing a column to the smallest width that contains all the content without clipping or truncating. If columnIndex is –1, you should return a size that can be uniformly applied to all columns (that is, every column will be set to this size). Returning a value of -1 allows you to opt-out of providing a width for the requested column.
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)