<!--
{
  "availability" : [
    "macOS: 10.11.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSLayoutManager/ControlCharacterAction",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@E@NSControlCharacterAction"
  },
  "title" : "NSLayoutManager.ControlCharacterAction"
}
-->

# NSLayoutManager.ControlCharacterAction

Constants that describe actions for control characters.

```
struct ControlCharacterAction
```

## Overview

These constants [`layoutManager(_:shouldUse:forControlCharacterAt:)`](/documentation/AppKit/NSLayoutManagerDelegate/layoutManager(_:shouldUse:forControlCharacterAt:)) delegate method uses.

## Topics

### Actions

[`containerBreak`](/documentation/AppKit/NSLayoutManager/ControlCharacterAction/containerBreak)

An action that triggers a break in layout for the current container.

[`horizontalTab`](/documentation/AppKit/NSLayoutManager/ControlCharacterAction/horizontalTab)

An action that inserts a horizontal tab.

[`lineBreak`](/documentation/AppKit/NSLayoutManager/ControlCharacterAction/lineBreak)

An action that causes a line break.

[`paragraphBreak`](/documentation/AppKit/NSLayoutManager/ControlCharacterAction/paragraphBreak)

An action that causes a paragraph break.

[`whitespace`](/documentation/AppKit/NSLayoutManager/ControlCharacterAction/whitespace)

An action that adds whitespace.

[`zeroAdvancement`](/documentation/AppKit/NSLayoutManager/ControlCharacterAction/zeroAdvancement)

An action that removes the glyph from layout.

### Initializers

[`init(rawValue:)`](/documentation/AppKit/NSLayoutManager/ControlCharacterAction/init(rawValue:))

Creates a new control character action with the specified raw value.



---

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)