Returns the rectangle the text in the block actually occupies, including padding, borders, and margins.
Original signature is '- (NSRect)boundsRectForContentRect:(NSRect)contentRect inRect:(NSRect)rect textContainer:(NSTextContainer *)textContainer characterRange:(NSRange)charRange'
Available in Mac OS X v10.4 and later.

C# | Visual Basic | Visual C++ |
public virtual NSRect BoundsRectForContentRectInRectTextContainerCharacterRange( NSRect contentRect, NSRect rect, NSTextContainer textContainer, NSRange charRange )
Public Overridable Function BoundsRectForContentRectInRectTextContainerCharacterRange ( _ contentRect As NSRect, _ rect As NSRect, _ textContainer As NSTextContainer, _ charRange As NSRange _ ) As NSRect
public: virtual NSRect BoundsRectForContentRectInRectTextContainerCharacterRange( NSRect contentRect, NSRect rect, NSTextContainer^ textContainer, NSRange charRange )

- contentRect (NSRect)
- The actual rectangle in which the text was laid out, as determined by rectForLayoutAtPoint:inRect:textContainer:characterRange:.
- rect (NSRect)
- The initial rectangle in textContainer proposed by the typesetter.
- textContainer (NSTextContainer)
- The text container being used for the layout.
- charRange (NSRange)
- The range of the characters in the NSTextStorage object whose glyphs are to be drawn.

The rectangle the text in the block actually occupies, including padding, borders, and margins.

- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)