MonobjcMonobjc Documented Class Library
BoundsRectForBlockContentRectInRectTextContainerCharacterRange Method (block, contentRect, rect, textContainer, charRange)
NamespacesMonobjc.AppKitNSTextTableBoundsRectForBlockContentRectInRectTextContainerCharacterRange(NSTextTableBlock, NSRect, NSRect, NSTextContainer, NSRange)

Returns the rectangle the text table block actually occupies, including padding, borders, and margins.

Original signature is '- (NSRect)boundsRectForBlock:(NSTextTableBlock *)block contentRect:(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 BoundsRectForBlockContentRectInRectTextContainerCharacterRange(
	NSTextTableBlock block,
	NSRect contentRect,
	NSRect rect,
	NSTextContainer textContainer,
	NSRange charRange
)
Public Overridable Function BoundsRectForBlockContentRectInRectTextContainerCharacterRange ( _
	block As NSTextTableBlock, _
	contentRect As NSRect, _
	rect As NSRect, _
	textContainer As NSTextContainer, _
	charRange As NSRange _
) As NSRect
public:
virtual NSRect BoundsRectForBlockContentRectInRectTextContainerCharacterRange(
	NSTextTableBlock^ block, 
	NSRect contentRect, 
	NSRect rect, 
	NSTextContainer^ textContainer, 
	NSRange charRange
)
Parameters
block (NSTextTableBlock)
The text table block that wants to determine where to layout its glyphs.
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 whose glyphs are to be drawn.
Return Value
The rectangle the text table 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)