MonobjcMonobjc Documented Class Library
CharacterIndexForPoint Method (aPoint)

Returns the index of the character whose bounding rectangle includes the given point. (required)

Original signature is '- (NSUInteger)characterIndexForPoint:(NSPoint)aPoint'

Available in Mac OS X v10.5 and later.

Declaration Syntax
C#Visual BasicVisual C++
NSUInteger CharacterIndexForPoint(
	NSPoint aPoint
Function CharacterIndexForPoint ( _
	aPoint As NSPoint _
) As NSUInteger
NSUInteger CharacterIndexForPoint(
	NSPoint aPoint
aPoint (NSPoint)
The point to test, in screen coordinates.
Return Value
The character index, measured from the start of the receiver’s text storage, of the character containing the given point. Returns NSNotFound if the cursor is not within a character’s bounding rectangle.
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)