---
title: "indexOfCell(withTag:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsform/indexofcell(withtag:)"
---

# indexOfCell(withTag:)

Returns the index of the entry whose tag is tag.

## Declaration

```swift
func indexOfCell(withTag tag: Int) -> Int
```

## Parameters

- `tag`: The tag of the desired entry.

## See Also

### Related Documentation

- [tag](appkit/nscell/tag.md)

### Getting Cells and Indices

- [indexOfSelectedItem()](appkit/nsform/indexofselecteditem().md)
- [cell(at:)](appkit/nsform/cell(at:).md)
