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.

C# | Visual Basic | Visual 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.

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.

- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)