MonobjcMonobjc Documented Class Library
BoundsRectForTextBlockAtIndexEffectiveRange Method (block, glyphIndex, effectiveGlyphRange)
NamespacesMonobjc.AppKitNSLayoutManagerBoundsRectForTextBlockAtIndexEffectiveRange(NSTextBlock, NSUInteger, NSRange%)

Returns the bounding rectangle within which the given text block containing the glyph at the given index is to be laid out.

Original signature is '- (NSRect)boundsRectForTextBlock:(NSTextBlock *)block atIndex:(NSUInteger)glyphIndex effectiveRange:(NSRangePointer)effectiveGlyphRange'

Available in Mac OS X v10.4 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSRect BoundsRectForTextBlockAtIndexEffectiveRange(
	NSTextBlock block,
	NSUInteger glyphIndex,
	ref NSRange effectiveGlyphRange
)
Public Overridable Function BoundsRectForTextBlockAtIndexEffectiveRange ( _
	block As NSTextBlock, _
	glyphIndex As NSUInteger, _
	ByRef effectiveGlyphRange As NSRange _
) As NSRect
public:
virtual NSRect BoundsRectForTextBlockAtIndexEffectiveRange(
	NSTextBlock^ block, 
	NSUInteger glyphIndex, 
	NSRange% effectiveGlyphRange
)
Parameters
block (NSTextBlock)
The text block whose bounding rectangle is returned.
glyphIndex (NSUInteger)
Index of the glyph.
effectiveGlyphRange (NSRange%)
If not NULL, on output, the range for all glyphs in the text block.
Return Value
The bounding rectangle of the text block, or NSZeroRect if no rectangle has been set for the specified block since the last invalidation.
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)