<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreText",
  "identifier" : "/documentation/CoreText/CTParagraphStyle",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Core Text"
    ],
    "preciseIdentifier" : "c:@T@CTParagraphStyleRef"
  },
  "title" : "CTParagraphStyle"
}
-->

# CTParagraphStyle

Paragraph or ruler attributes in an attributed string.

```
class CTParagraphStyle
```

## Overview

A paragraph style object represents a complex attribute value in an attributed string, storing a number of subattributes that affect paragraph layout for the characters of the string. Among these subattributes are alignment, tab stops, writing direction, line-breaking mode, and indentation settings.

## Topics

### Creating Paragraph Styles

[`CTParagraphStyleCreate(_:_:)`](/documentation/CoreText/CTParagraphStyleCreate(_:_:))

Creates an immutable paragraph style.

[`CTParagraphStyleCreateCopy(_:)`](/documentation/CoreText/CTParagraphStyleCreateCopy(_:))

Creates an immutable copy of a paragraph style.

### Getting the Value of a Style Specifier

[`CTParagraphStyleGetValueForSpecifier(_:_:_:_:)`](/documentation/CoreText/CTParagraphStyleGetValueForSpecifier(_:_:_:_:))

Obtains the current value for a single setting specifier.

### Getting the Type Identifier

[`CTParagraphStyleGetTypeID()`](/documentation/CoreText/CTParagraphStyleGetTypeID())

Returns the Core Foundation type identifier of the paragraph style object.

### Data Types

[`CTParagraphStyleSetting`](/documentation/CoreText/CTParagraphStyleSetting)

This structure is used to alter the paragraph style.

### Constants

[`CTTextAlignment`](/documentation/CoreText/CTTextAlignment)

Constants that specify text alignment.

[`CTLineBreakMode`](/documentation/CoreText/CTLineBreakMode)

These constants specify what happens when a line is too long for its frame.

[`CTWritingDirection`](/documentation/CoreText/CTWritingDirection)

These constants specify the writing direction.

[`CTParagraphStyleSpecifier`](/documentation/CoreText/CTParagraphStyleSpecifier)

Constants used to query and modify a paragraph style object.



---

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)