Returns the rectangle within which glyphs should be laid out for the specified arguments.
Original signature is '- (NSRect)rectForLayoutAtPoint:(NSPoint)startingPoint inRect:(NSRect)rect textContainer:(NSTextContainer *)textContainer characterRange:(NSRange)charRange'
Available in Mac OS X v10.4 and later.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public virtual NSRect RectForLayoutAtPointInRectTextContainerCharacterRange( NSPoint startingPoint, NSRect rect, NSTextContainer textContainer, NSRange charRange )
Public Overridable Function RectForLayoutAtPointInRectTextContainerCharacterRange ( _ startingPoint As NSPoint, _ rect As NSRect, _ textContainer As NSTextContainer, _ charRange As NSRange _ ) As NSRect
public: virtual NSRect RectForLayoutAtPointInRectTextContainerCharacterRange( NSPoint startingPoint, NSRect rect, NSTextContainer^ textContainer, NSRange charRange )
Parameters
- startingPoint (NSPoint)
- The location, in container coordinates, where layout begins.
- rect (NSRect)
- The rectangle in which the block is constrained to lie. For top-level blocks, this is the container rectangle of textContainer; for nested blocks, this is the layout rectangle of the enclosing block.
- 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 within which glyphs should be laid out.
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)