MonobjcMonobjc Documented Class Library
RectArrayForGlyphRangeWithinSelectedGlyphRangeInTextContainerRectCount Method (glyphRange, selGlyphRange, container, rectCount)
NamespacesMonobjc.AppKitNSLayoutManagerRectArrayForGlyphRangeWithinSelectedGlyphRangeInTextContainerRectCount(NSRange, NSRange, NSTextContainer, NSUInteger%)

Returns an array of rectangles and, by reference, the number of such rectangles, that define the region in the given container enclosing the given glyph range.

Original signature is '- (NSRectArray)rectArrayForGlyphRange:(NSRange)glyphRange withinSelectedGlyphRange:(NSRange)selGlyphRange inTextContainer:(NSTextContainer *)container rectCount:(NSUInteger *)rectCount'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual IntPtr RectArrayForGlyphRangeWithinSelectedGlyphRangeInTextContainerRectCount(
	NSRange glyphRange,
	NSRange selGlyphRange,
	NSTextContainer container,
	out NSUInteger rectCount
)
Public Overridable Function RectArrayForGlyphRangeWithinSelectedGlyphRangeInTextContainerRectCount ( _
	glyphRange As NSRange, _
	selGlyphRange As NSRange, _
	container As NSTextContainer, _
	<OutAttribute> ByRef rectCount As NSUInteger _
) As IntPtr
public:
virtual IntPtr RectArrayForGlyphRangeWithinSelectedGlyphRangeInTextContainerRectCount(
	NSRange glyphRange, 
	NSRange selGlyphRange, 
	NSTextContainer^ container, 
	[OutAttribute] NSUInteger% rectCount
)
Parameters
glyphRange (NSRange)
The glyph range for which to return rectangles.
selGlyphRange (NSRange)
Selected glyphs within glyphRange, which can affect the size of the rectangles; it must be equal to or contain glyphRange. If the caller is interested in this more from an enclosing point of view rather than a selection point of view, pass {NSNotFound, 0} as the selected range.
container (NSTextContainer)
The text container in which the text is laid out.
rectCount (NSUInteger%)
The number of rectangles returned.
Return Value
The array of rectangles enclosing the given range.
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)