Class

NSMutable​Paragraph​Style

The NSMutable​Paragraph​Style class adds methods to its superclass, NSParagraph​Style, for changing the values of the subattributes in a paragraph style attribute. See the NSParagraph​Style and NSAttributed​String specifications for more information.

Overview

Symbols

Setting other style information

func set​Paragraph​Style(NSParagraph​Style)

Replaces the subattributes of the receiver with those in the specified paragraph style object.

var alignment:​ NSText​Alignment

The text alignment of the receiver.

var first​Line​Head​Indent:​ CGFloat

The indentation of the first line of the receiver.

var head​Indent:​ CGFloat

The indentation of the receiver’s lines other than the first.

var tail​Indent:​ CGFloat

The trailing indentation of the receiver.

var line​Break​Mode:​ NSLine​Break​Mode

The mode that should be used to break lines in the receiver.

var maximum​Line​Height:​ CGFloat

The receiver’s maximum line height.

var minimum​Line​Height:​ CGFloat

The receiver’s minimum height.

var line​Spacing:​ CGFloat

The distance in points between the bottom of one line fragment and the top of the next.

var paragraph​Spacing:​ CGFloat

The space after the end of the paragraph.

var paragraph​Spacing​Before:​ CGFloat

The distance between the paragraph’s top and the beginning of its text content.

var base​Writing​Direction:​ NSWriting​Direction

The base writing direction for the receiver.

Accessing Tab Information

func add​Tab​Stop(NSText​Tab)

Adds tab​Stop to the receiver.

func remove​Tab​Stop(NSText​Tab)

Removes the first text tab whose location and type are equal to those of tab​Stop.

var tab​Stops:​ [NSText​Tab]!

An array of NSText​Tab objects representing the receiver’s tab stops.

var default​Tab​Interval:​ CGFloat

The document-wide default tab interval.

Setting text blocks and lists

var text​Blocks:​ [NSText​Block]

The text blocks containing the paragraph, nested from outermost to innermost to array.

var text​Lists:​ [NSText​List]

The array of text lists containing the paragraph.

Controlling hyphenation and truncation

var hyphenation​Factor:​ Float

The paragraph’s threshold for hyphenation.

var tightening​Factor​For​Truncation:​ Float

The threshold for using tightening as an alternative to truncation.

Setting HTML header level

var header​Level:​ Int

Specifies whether the paragraph is to be treated as a header for purposes of HTML generation.

Relationships

Inherits From