MonobjcMonobjc Documented Class Library
HitTestForEventInRectOfView Method (event, cellFrame, controlView)
NamespacesMonobjc.AppKitNSCellHitTestForEventInRectOfView(NSEvent, NSRect, NSView)

Returns hit testing information for the receiver.

Original signature is '- (NSUInteger)hitTestForEvent:(NSEvent *)event inRect:(NSRect)cellFrame ofView:(NSView *)controlView'

Available in Mac OS X v10.5 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSUInteger HitTestForEventInRectOfView(
	NSEvent event,
	NSRect cellFrame,
	NSView controlView
)
Public Overridable Function HitTestForEventInRectOfView ( _
	event As NSEvent, _
	cellFrame As NSRect, _
	controlView As NSView _
) As NSUInteger
public:
virtual NSUInteger HitTestForEventInRectOfView(
	NSEvent^ event, 
	NSRect cellFrame, 
	NSView^ controlView
)
Parameters
event (NSEvent)
The current event.
cellFrame (NSRect)
The cell’s frame.
controlView (NSView)
The control object in which the cell is located.
Return Value
A constant that specifies the type of area in which the event occurred—see “Hit Testing” for values.
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)