MonobjcMonobjc Documented Class Library
CharacterIndexForPoint Method (thePoint)

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

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

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
NSUInteger CharacterIndexForPoint(
	NSPoint thePoint
Function CharacterIndexForPoint ( _
	thePoint As NSPoint _
) As NSUInteger
NSUInteger CharacterIndexForPoint(
	NSPoint thePoint
thePoint (NSPoint)
A point, 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.
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)