Instance Method

drawBackgroundWithFrame:inView:characterRange:layoutManager:

Called by the layout manager to draw any colors and other decorations before the text is drawn.

Declaration

- (void)drawBackgroundWithFrame:(NSRect)frameRect inView:(NSView *)controlView characterRange:(NSRange)charRange layoutManager:(NSLayoutManager *)layoutManager;

Parameters

frameRect

The bounds rectangle in view coordinates.

controlView

The view in which drawing occurs.

charRange

The range of the characters in the NSTextStorage object whose glyphs are to be drawn.

layoutManager

The layout manager controlling the typesetting.