MonobjcMonobjc Documented Class Library
BoundsRectForContentRectInRectTextContainerCharacterRange Method (contentRect, rect, textContainer, charRange)
NamespacesMonobjc.AppKitNSTextBlockBoundsRectForContentRectInRectTextContainerCharacterRange(NSRect, NSRect, NSTextContainer, NSRange)

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.

Declaration Syntax
C#Visual BasicVisual 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
)
Parameters
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.
Return Value
The rectangle the text in the block actually occupies, including padding, borders, and margins.
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)