MonobjcMonobjc Documented Class Library
StatusItemWithLength Method (length)
NamespacesMonobjc.AppKitNSStatusBarStatusItemWithLength(CGFloat)

Returns a newly created status item that has been allotted a specified space within the status bar.

Original signature is '- (NSStatusItem *)statusItemWithLength:(CGFloat)length'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSStatusItem StatusItemWithLength(
	CGFloat length
)
Public Overridable Function StatusItemWithLength ( _
	length As CGFloat _
) As NSStatusItem
public:
virtual NSStatusItem^ StatusItemWithLength(
	CGFloat length
)
Parameters
length (CGFloat)
A constant that specifies whether the status item is of fixed width, or variable width. The valid constants are described in “Status Bar Item Length.”
Return Value
An NSStatusItem object or nil if the item could not be created.
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)