<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSRuleEditor/rowType(forRow:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSRuleEditor(im)rowTypeForRow:"
  },
  "title" : "rowType(forRow:)"
}
-->

# rowType(forRow:)

Returns the type of a given row.

```
func rowType(forRow rowIndex: Int) -> NSRuleEditor.RowType
```

## Parameters

`rowIndex`

The index of a row in the receiver.
  
  > Important:
  > Raises an `NSRangeException` if `rowIndex` is less than `0` or greater than or equal to the number of rows.

## Return Value

The type of the row at `rowIndex`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)