Returns an array of rectangles and, by reference, the number of such rectangles, that define the region in the given container enclosing the given character range.
Original signature is '- (NSRectArray)rectArrayForCharacterRange:(NSRange)charRange withinSelectedCharacterRange:(NSRange)selCharRange inTextContainer:(NSTextContainer *)container rectCount:(NSUInteger *)rectCount'
Available in Mac OS X v10.0 and later.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public virtual IntPtr RectArrayForCharacterRangeWithinSelectedCharacterRangeInTextContainerRectCount( NSRange charRange, NSRange selCharRange, NSTextContainer container, out NSUInteger rectCount )
Public Overridable Function RectArrayForCharacterRangeWithinSelectedCharacterRangeInTextContainerRectCount ( _ charRange As NSRange, _ selCharRange As NSRange, _ container As NSTextContainer, _ <OutAttribute> ByRef rectCount As NSUInteger _ ) As IntPtr
public: virtual IntPtr RectArrayForCharacterRangeWithinSelectedCharacterRangeInTextContainerRectCount( NSRange charRange, NSRange selCharRange, NSTextContainer^ container, [OutAttribute] NSUInteger% rectCount )
Parameters
- charRange (NSRange)
- The character range for which to return rectangles.
- selCharRange (NSRange)
- Selected characters within charRange, which can affect the size of the rectangles; it must be equal to or contain charRange. 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)