---
title: "selectText(at:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsform/selecttext(at:)"
---

# selectText(at:)

Selects the entry at the specified index.

## Declaration

```swift
func selectText(at index: Int)
```

## Parameters

- `index`: The index of the entry to select. If the specified index is invalid, this method does nothing.
