---
title: "actionForControlCharacter(at:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nstypesetter/actionforcontrolcharacter(at:)"
---

# actionForControlCharacter(at:)

Returns the action associated with a control character.

## Declaration

```swift
func actionForControlCharacter(at charIndex: Int) -> NSTypesetterControlCharacterAction
```

## Parameters

- `charIndex`: The index of the control character.

## Return Value

Return Value The action associated with the control character at charIndex.

## See Also

### Deprecated

- [deleteGlyphs(in:)](appkit/nstypesetter/deleteglyphs(in:).md)
- [substituteGlyphs(in:withGlyphs:)](appkit/nstypesetter/substituteglyphs(in:withglyphs:).md)
- [getGlyphs(in:glyphs:characterIndexes:glyphInscriptions:elasticBits:bidiLevels:)](appkit/nstypesetter/getglyphs(in:glyphs:characterindexes:glyphinscriptions:elasticbits:bidilevels:).md)
- [insertGlyph(_:atGlyphIndex:characterIndex:)](appkit/nstypesetter/insertglyph(_:atglyphindex:characterindex:).md)
- [NSTypesetterControlCharacterAction](appkit/nstypesettercontrolcharacteraction.md)
