Lays out characters in the given character range for the specified layout manager.
Original signature is '- (NSRange)layoutCharactersInRange:(NSRange)characterRange forLayoutManager:(NSLayoutManager *)layoutManager maximumNumberOfLineFragments:(NSUInteger)maxNumLines'
Available in Mac OS X v10.5 and later.

C# | Visual Basic | Visual C++ |
public virtual NSRange LayoutCharactersInRangeForLayoutManagerMaximumNumberOfLineFragments( NSRange characterRange, NSLayoutManager layoutManager, NSUInteger maxNumLines )
Public Overridable Function LayoutCharactersInRangeForLayoutManagerMaximumNumberOfLineFragments ( _ characterRange As NSRange, _ layoutManager As NSLayoutManager, _ maxNumLines As NSUInteger _ ) As NSRange
public: virtual NSRange LayoutCharactersInRangeForLayoutManagerMaximumNumberOfLineFragments( NSRange characterRange, NSLayoutManager^ layoutManager, NSUInteger maxNumLines )

- characterRange (NSRange)
- The range of the characters to lay out.
- layoutManager (NSLayoutManager)
- The layout manager that does the drawing.
- maxNumLines (NSUInteger)
- The maximum number of line fragments to lay out. Specify NSUIntegerMax for unlimited number of line fragments.

The method returns the actual character range that the receiving NSTypesetter processed.

- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)