MonobjcMonobjc Documented Class Library
BoundingRectForGlyphRangeInTextContainer Method (glyphRange, container)
NamespacesMonobjc.AppKitNSLayoutManagerBoundingRectForGlyphRangeInTextContainer(NSRange, NSTextContainer)

Returns a single bounding rectangle (in container coordinates) enclosing all glyphs and other marks drawn in the given text container for the given glyph range, including glyphs that draw outside their line fragment rectangles and text attributes such as underlining.

Original signature is '- (NSRect)boundingRectForGlyphRange:(NSRange)glyphRange inTextContainer:(NSTextContainer *)container'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSRect BoundingRectForGlyphRangeInTextContainer(
	NSRange glyphRange,
	NSTextContainer container
)
Public Overridable Function BoundingRectForGlyphRangeInTextContainer ( _
	glyphRange As NSRange, _
	container As NSTextContainer _
) As NSRect
public:
virtual NSRect BoundingRectForGlyphRangeInTextContainer(
	NSRange glyphRange, 
	NSTextContainer^ container
)
Parameters
glyphRange (NSRange)
The range of glyphs for which to return the bounding rectangle.
container (NSTextContainer)
The text container in which the glyphs are laid out.
Return Value
The bounding rectangle enclosing the given range of glyphs.
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)