---
title: NSRectFillList
framework: appkit
role: symbol
role_heading: Function
path: appkit/nsrectfilllist
---

# NSRectFillList

Fills the rectangles in the passed list with the current fill color.

## Declaration

```occ
extern void NSRectFillList(const NSRect *rects, NSInteger count);
```

## Parameters

- `rects`: A pointer to an array of doc://com.apple.documentation/documentation/Foundation/NSRect structures representing the rectangles to fill.
- `count`: The number of rectangles in rects.

## Discussion

Discussion Fills the specified rectangles with the current fill color using the compositing mode NSCompositeCopy. For more information, see NSCompositingOperation.

## See Also

### Drawing Rectangles

- [NSFrameRect](appkit/nsframerect.md)
- [NSFrameRectWithWidth](appkit/nsframerectwithwidth.md)
- [NSFrameRectWithWidthUsingOperation](appkit/nsframerectwithwidthusingoperation.md)
- [NSEraseRect(_:)](appkit/nseraserect(_:).md)
- [NSRectFill](appkit/nsrectfill.md)
- [NSRectFillListUsingOperation](appkit/nsrectfilllistusingoperation.md)
- [NSRectFillListWithColors](appkit/nsrectfilllistwithcolors.md)
- [NSRectFillListWithColorsUsingOperation](appkit/nsrectfilllistwithcolorsusingoperation.md)
- [NSRectFillListWithGrays](appkit/nsrectfilllistwithgrays.md)
- [NSRectFillUsingOperation](appkit/nsrectfillusingoperation.md)
- [NSDrawTiledRects(_:_:_:_:_:)](appkit/nsdrawtiledrects(_:_:_:_:_:).md)
- [NSDrawGroove(_:_:)](appkit/nsdrawgroove(_:_:).md)
- [NSHighlightRect](appkit/nshighlightrect.md)
