---
title: NSRectFillUsingOperation
framework: appkit
role: symbol
role_heading: Function
path: appkit/nsrectfillusingoperation
---

# NSRectFillUsingOperation

Fills a rectangle using the current fill color and the specified compositing operation.

## Declaration

```occ
extern void NSRectFillUsingOperation(NSRect rect, NSCompositingOperation op);
```

## Parameters

- `rect`: The rectangle to fill with the current fill color.
- `op`: The compositing operation to use when filling the rectangle.

## Discussion

Discussion 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)
- [NSRectFillListUsingOperation](appkit/nsrectfilllistusingoperation.md)
- [NSRectFillListWithColors](appkit/nsrectfilllistwithcolors.md)
- [NSRectFillListWithColorsUsingOperation](appkit/nsrectfilllistwithcolorsusingoperation.md)
- [NSRectFillListWithGrays](appkit/nsrectfilllistwithgrays.md)
- [NSDrawTiledRects(_:_:_:_:_:)](appkit/nsdrawtiledrects(_:_:_:_:_:).md)
- [NSDrawGroove(_:_:)](appkit/nsdrawgroove(_:_:).md)
- [NSHighlightRect](appkit/nshighlightrect.md)
