MonobjcMonobjc Documented Class Library
StateImageRectForBounds Method (cellFrame)
NamespacesMonobjc.AppKitNSMenuItemCellStateImageRectForBounds(NSRect)

Returns the rectangle into which the menu item’s state image should be drawn.

Original signature is '- (NSRect)stateImageRectForBounds:(NSRect)cellFrame'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSRect StateImageRectForBounds(
	NSRect cellFrame
)
Public Overridable Function StateImageRectForBounds ( _
	cellFrame As NSRect _
) As NSRect
public:
virtual NSRect StateImageRectForBounds(
	NSRect cellFrame
)
Parameters
cellFrame (NSRect)
A rectangle that defines the bounds of the receiver.
Return Value
The returned rectangle is based on cellFrame but encompasses only the area to be occupied by the menu item’s state image.
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)