Returns the index of the character falling under the given point, expressed in the given container's coordinate system.
Original signature is '- (NSUInteger)characterIndexForPoint:(NSPoint)point inTextContainer:(NSTextContainer *)container fractionOfDistanceBetweenInsertionPoints:(CGFloat *)partialFraction'
Available in Mac OS X v10.6 and later.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public virtual NSUInteger CharacterIndexForPointInTextContainerFractionOfDistanceBetweenInsertionPoints( NSPoint point, NSTextContainer container, out CGFloat partialFraction )
Public Overridable Function CharacterIndexForPointInTextContainerFractionOfDistanceBetweenInsertionPoints ( _ point As NSPoint, _ container As NSTextContainer, _ <OutAttribute> ByRef partialFraction As CGFloat _ ) As NSUInteger
public: virtual NSUInteger CharacterIndexForPointInTextContainerFractionOfDistanceBetweenInsertionPoints( NSPoint point, NSTextContainer^ container, [OutAttribute] CGFloat% partialFraction )
Parameters
- point (NSPoint)
- The point to test.
- container (NSTextContainer)
- The text container within which the point is tested.
- partialFraction (CGFloat%)
- A fraction of the distance from the insertion point, logically before the given character to the next one.
Return Value
The index of the character falling under point.
Version Information
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later)