MonobjcMonobjc Documented Class Library
GlyphRangeForBoundingRectInTextContainer Method (bounds, container)
NamespacesMonobjc.AppKitNSLayoutManagerGlyphRangeForBoundingRectInTextContainer(NSRect, NSTextContainer)

Returns the smallest contiguous range for glyphs that are laid out wholly or partially within the given rectangle in the given text container.

Original signature is '- (NSRange)glyphRangeForBoundingRect:(NSRect)bounds inTextContainer:(NSTextContainer *)container'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSRange GlyphRangeForBoundingRectInTextContainer(
	NSRect bounds,
	NSTextContainer container
)
Public Overridable Function GlyphRangeForBoundingRectInTextContainer ( _
	bounds As NSRect, _
	container As NSTextContainer _
) As NSRange
public:
virtual NSRange GlyphRangeForBoundingRectInTextContainer(
	NSRect bounds, 
	NSTextContainer^ container
)
Parameters
bounds (NSRect)
The bounding rectangle for which to return glyphs.
container (NSTextContainer)
The text container in which the glyphs are laid out.
Return Value
The range of glyphs that would need to be displayed in order to draw all glyphs that fall (even partially) within the given bounding rectangle. The range returned can include glyphs that don’t fall inside or intersect bounds, although the first and last glyphs in the range always do. At most this method returns the glyph range for the whole container.
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)