---
title: "rowType(forRow:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsruleeditor/rowtype(forrow:)"
---

# rowType(forRow:)

Returns the type of a given row.

## Declaration

```swift
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

Return Value The type of the row at rowIndex.

## See Also

### Obtaining Row Information

- [numberOfRows](appkit/nsruleeditor/numberofrows.md)
- [parentRow(forRow:)](appkit/nsruleeditor/parentrow(forrow:).md)
- [row(forDisplayValue:)](appkit/nsruleeditor/row(fordisplayvalue:).md)
- [NSRuleEditor.RowType](appkit/nsruleeditor/rowtype.md)
- [subrowIndexes(forRow:)](appkit/nsruleeditor/subrowindexes(forrow:).md)
