Global Variable

NSParagraphStyleAttributeName

Declaration

iOS, tvOS, watchOS
const NSAttributedStringKey NSParagraphStyleAttributeName;
macOS
NSAttributedStringKey NSParagraphStyleAttributeName;

Discussion

The value of this attribute is an NSParagraphStyle object. Use this attribute to apply multiple attributes to a range of text. If you do not specify this attribute, the string uses the default paragraph attributes, as returned by the defaultParagraphStyle method of NSParagraphStyle.