---
title: "row(for:)"
framework: Notification Center
role: symbol
role_heading: Instance Method
platforms: [macOS 10.10+]
path: "notificationcenter/ncwidgetlistviewcontroller/row(for:)"
---

# row(for:)

Returns the row represented by the specified content view controller.

## Declaration

```swift
func row(for viewController: NSViewController) -> Int
```

## Parameters

- `viewController`: The content view controller created by the delegate to display the object in the row.

## Return Value

Return Value The row represented by the content view controller.

## See Also

### Accessing Content

- [contents](notificationcenter/ncwidgetlistviewcontroller/contents.md)
- [viewController(atRow:makeIfNecessary:)](notificationcenter/ncwidgetlistviewcontroller/viewcontroller(atrow:makeifnecessary:).md)
