MonobjcMonobjc Documented Class Library
FractionOfDistanceThroughGlyphForPoint Method (aPoint)

Returns the fraction of the distance from the left side of the character to the right side that a given point lies.

Original signature is '- (CGFloat)fractionOfDistanceThroughGlyphForPoint:(NSPoint)aPoint'

Available in Mac OS X v10.5 and later.

Declaration Syntax
C#Visual BasicVisual C++
CGFloat FractionOfDistanceThroughGlyphForPoint(
	NSPoint aPoint
Function FractionOfDistanceThroughGlyphForPoint ( _
	aPoint As NSPoint _
) As CGFloat
CGFloat FractionOfDistanceThroughGlyphForPoint(
	NSPoint aPoint
aPoint (NSPoint)
The point to test.
Return Value
The fraction of the distance aPoint is through the glyph in which it lies. May be 0 or 1 if aPoint is not within the bounding rectangle of a glyph (0 if the point is to the left or above the glyph; 1 if it's to the right or below).
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)