---
title: NSRectFillListUsingOperation
framework: appkit
role: symbol
role_heading: Function
path: appkit/nsrectfilllistusingoperation
---

# NSRectFillListUsingOperation

Fills the rectangles in a list using the current fill color and specified compositing operation.

## Declaration

```occ
extern void NSRectFillListUsingOperation(const NSRect *rects, NSInteger count, NSCompositingOperation op);
```

## 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 the rects parameter.
- `op`: The compositing operation to use when filling the rectangles.

## Discussion

Discussion Fills a list of count rectangles with the current fill color, using the compositing operation op. For example, specifying NSCompositeSourceOver will blend with what’s already been drawn. 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)
- [NSRectFillList](appkit/nsrectfilllist.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)
