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

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

Original signature is '- (NSRect)layoutRectForTextBlock:(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 LayoutRectForTextBlockAtIndexEffectiveRange(
	NSTextBlock block,
	NSUInteger glyphIndex,
	ref NSRange effectiveGlyphRange
)
Public Overridable Function LayoutRectForTextBlockAtIndexEffectiveRange ( _
	block As NSTextBlock, _
	glyphIndex As NSUInteger, _
	ByRef effectiveGlyphRange As NSRange _
) As NSRect
public:
virtual NSRect LayoutRectForTextBlockAtIndexEffectiveRange(
	NSTextBlock^ block, 
	NSUInteger glyphIndex, 
	NSRange% effectiveGlyphRange
)
Parameters
block (NSTextBlock)
The text block whose layout 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 layout 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)