Called by the layout manager to draw any colors and other decorations before the text is drawn.
Original signature is '- (void)drawBackgroundWithFrame:(NSRect)frameRect inView:(NSView *)controlView characterRange:(NSRange)charRange layoutManager:(NSLayoutManager *)layoutManager'
Available in Mac OS X v10.4 and later.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public virtual void DrawBackgroundWithFrameInViewCharacterRangeLayoutManager( NSRect frameRect, NSView controlView, NSRange charRange, NSLayoutManager layoutManager )
Public Overridable Sub DrawBackgroundWithFrameInViewCharacterRangeLayoutManager ( _ frameRect As NSRect, _ controlView As NSView, _ charRange As NSRange, _ layoutManager As NSLayoutManager _ )
public: virtual void DrawBackgroundWithFrameInViewCharacterRangeLayoutManager( NSRect frameRect, NSView^ controlView, NSRange charRange, NSLayoutManager^ layoutManager )
Parameters
- frameRect (NSRect)
- The bounds rectangle in view coordinates.
- controlView (NSView)
- The view in which drawing occurs.
- charRange (NSRange)
- The range of the characters in the NSTextStorage object whose glyphs are to be drawn.
- layoutManager (NSLayoutManager)
- The layout manager controlling the typesetting.
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)