MonobjcMonobjc Documented Class Library
GlyphIndexForPointInTextContainerFractionOfDistanceThroughGlyph Method (point, container, partialFraction)
NamespacesMonobjc.AppKitNSLayoutManagerGlyphIndexForPointInTextContainerFractionOfDistanceThroughGlyph(NSPoint, NSTextContainer, CGFloat%)

Returns the index of the glyph falling under the given point, expressed in the given container's coordinate system.

Original signature is '- (NSUInteger)glyphIndexForPoint:(NSPoint)point inTextContainer:(NSTextContainer *)container fractionOfDistanceThroughGlyph:(CGFloat *)partialFraction'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSUInteger GlyphIndexForPointInTextContainerFractionOfDistanceThroughGlyph(
	NSPoint point,
	NSTextContainer container,
	out CGFloat partialFraction
)
Public Overridable Function GlyphIndexForPointInTextContainerFractionOfDistanceThroughGlyph ( _
	point As NSPoint, _
	container As NSTextContainer, _
	<OutAttribute> ByRef partialFraction As CGFloat _
) As NSUInteger
public:
virtual NSUInteger GlyphIndexForPointInTextContainerFractionOfDistanceThroughGlyph(
	NSPoint point, 
	NSTextContainer^ container, 
	[OutAttribute] CGFloat% partialFraction
)
Parameters
point (NSPoint)
The point for which to return the glyph, in coordinates of container.
container (NSTextContainer)
The container in which the returned glyph is laid out.
partialFraction (CGFloat%)
If not NULL, on output, the fraction of the distance between the location of the glyph returned and the location of the next glyph.
Return Value
The index of the glyph falling under the given point, expressed in the given container's coordinate system.
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)