<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTextView/alignJustified(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSTextView(im)alignJustified:"
  },
  "title" : "alignJustified(_:)"
}
-->

# alignJustified(_:)

Applies full justification to selected paragraphs (or all text, if the receiver is a plain text object).

```
func alignJustified(_ sender: Any?)
```

## Parameters

`sender`

The control that sent the message; may be `nil`.

## See Also

[`alignRight(_:)`](/documentation/AppKit/NSText/alignRight(_:))

This action method applies right alignment to selected paragraphs (or all text if the receiver is a plain text object).

[`alignLeft(_:)`](/documentation/AppKit/NSText/alignLeft(_:))

This action method applies left alignment to selected paragraphs (or all text if the receiver is a plain text object).

[`alignCenter(_:)`](/documentation/AppKit/NSText/alignCenter(_:))

This action method applies center alignment to selected paragraphs (or all text if the receiver is a plain text object).

[`alignment`](/documentation/AppKit/NSText/alignment)

The alignment of all the receiver’s text.



---

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)