---
title: "outlineView(_:isGroupItem:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsoutlineviewdelegate/outlineview(_:isgroupitem:)"
---

# outlineView(_:isGroupItem:)

Returns a Boolean that indicates whether a given row should be drawn in the “group row” style.

## Declaration

```swift
@MainActor optional func outlineView(_ outlineView: NSOutlineView, isGroupItem item: Any) -> Bool
```

## Parameters

- `outlineView`: The outline view that sent the message.
- `item`: An item in the outline view.

## Return Value

Return Value true to indicate a particular row should have the “group row” style drawn for that row, otherwise false.

## Discussion

Discussion If the cell in that row is an instance of NSTextFieldCell and contains only a string value, the “group row” style attributes are automatically applied for that cell.
