Up

# NSParagraphStyle

### Authors

Richard Frith-Macdonald (`richard@brainstorm.co.uk`)

> NSParagraphStyle and NSMutableParagraphStyle hold paragraph style information NSTextTab holds information about a single tab stop

Copyright: (C) 1996 Free Software Foundation, Inc.

### Contents -

1. Software documentation for the NSMutableParagraphStyle class
2. Software documentation for the NSParagraphStyle class
3. Software documentation for the NSTextTab class

# Software documentation for the NSMutableParagraphStyle class

## NSMutableParagraphStyle : NSParagraphStyle

> Declared in:
>   AppKit/NSParagraphStyle.h

Availability: OpenStep
Description forthcoming.
Method summary

- -addTabStop:
- -removeTabStop:
- -setAlignment:
- -setBaseWritingDirection:
- -setDefaultTabInterval:
- -setFirstLineHeadIndent:
- -setHeadIndent:
- -setHeaderLevel:
- -setHyphenationFactor:
- -setLineBreakMode:
- -setLineHeightMultiple:
- -setLineSpacing:
- -setMaximumLineHeight:
- -setMinimumLineHeight:
- -setParagraphSpacing:
- -setParagraphSpacingBefore:
- -setParagraphStyle:
- -setTabStops:
- -setTailIndent:
- -setTextBlocks:
- -setTextLists:
- -setTighteningFactorForTruncation:

### addTabStop:

- (void) addTabStop: (NSTextTab*)anObject;
Availability: OpenStep
Description forthcoming.

### removeTabStop:

- (void) removeTabStop: (NSTextTab*)anObject;
Availability: OpenStep
Description forthcoming.

### setAlignment:

- (void) setAlignment: (NSTextAlignment)newAlignment;
Availability: OpenStep
Description forthcoming.

### setBaseWritingDirection:

- (void) setBaseWritingDirection: (NSWritingDirection)direction;
Availability: MacOS-X 10.2.0
Description forthcoming.

### setDefaultTabInterval:

- (void) setDefaultTabInterval: (CGFloat)interval;
Availability: MacOS-X 10.3.0
Description forthcoming.

### setFirstLineHeadIndent:

- (void) setFirstLineHeadIndent: (CGFloat)aFloat;
Availability: OpenStep
Description forthcoming.

### setHeadIndent:

- (void) setHeadIndent: (CGFloat)aFloat;
Availability: OpenStep
Description forthcoming.

### setHeaderLevel:

- (void) setHeaderLevel: (NSInteger)level;
Availability: MacOS-X 10.4.0
Description forthcoming.

### setHyphenationFactor:

- (void) setHyphenationFactor: (float)factor;
Availability: MacOS-X 10.4.0
Description forthcoming.

### setLineBreakMode:

- (void) setLineBreakMode: (NSLineBreakMode)mode;
Availability: OpenStep
Description forthcoming.

### setLineHeightMultiple:

- (void) setLineHeightMultiple: (CGFloat)factor;
Availability: MacOS-X 10.3.0
Description forthcoming.

### setLineSpacing:

- (void) setLineSpacing: (CGFloat)aFloat;
Availability: OpenStep
Description forthcoming.

### setMaximumLineHeight:

- (void) setMaximumLineHeight: (CGFloat)aFloat;
Availability: OpenStep
Description forthcoming.

### setMinimumLineHeight:

- (void) setMinimumLineHeight: (CGFloat)aFloat;
Availability: OpenStep
Description forthcoming.

### setParagraphSpacing:

- (void) setParagraphSpacing: (CGFloat)aFloat;
Availability: OpenStep
Description forthcoming.

### setParagraphSpacingBefore:

- (void) setParagraphSpacingBefore: (CGFloat)spacing;
Availability: MacOS-X 10.3.0
Description forthcoming.

### setParagraphStyle:

- (void) setParagraphStyle: (NSParagraphStyle*)obj;
Availability: OpenStep
Description forthcoming.

### setTabStops:

- (void) setTabStops: (NSArray*)array;
Availability: OpenStep
Description forthcoming.

### setTailIndent:

- (void) setTailIndent: (CGFloat)aFloat;
Availability: OpenStep
Description forthcoming.

### setTextBlocks:

- (void) setTextBlocks: (NSArray*)blocks;
Availability: MacOS-X 10.4.0
Description forthcoming.

### setTextLists:

- (void) setTextLists: (NSArray*)lists;
Availability: MacOS-X 10.4.0
Description forthcoming.

### setTighteningFactorForTruncation:

- (void) setTighteningFactorForTruncation: (float)factor;
Availability: MacOS-X 10.4.0
Description forthcoming.

# Software documentation for the NSParagraphStyle class

## NSParagraphStyle : NSObject

> Declared in:
>   AppKit/NSParagraphStyle.h

> Conforms to:
>   NSCopying
>   NSMutableCopying
>   NSCoding

Availability: OpenStep
Description forthcoming.

Instance Variables
Method summary

- +defaultParagraphStyle
- +defaultWritingDirectionForLanguage:
- -alignment
- -baseWritingDirection
- -defaultTabInterval
- -firstLineHeadIndent
- -headIndent
- -headerLevel
- -hyphenationFactor
- -lineBreakMode
- -lineHeightMultiple
- -lineSpacing
- -maximumLineHeight
- -minimumLineHeight
- -paragraphSpacing
- -paragraphSpacingBefore
- -tabStops
- -tailIndent
- -textBlocks
- -textLists
- -tighteningFactorForTruncation

### defaultParagraphStyle

+ (NSParagraphStyle*) defaultParagraphStyle;
Availability: OpenStep
Description forthcoming.

### defaultWritingDirectionForLanguage:

+ (NSWritingDirection) defaultWritingDirectionForLanguage: (NSString*)language;
Availability: MacOS-X 10.2.0
Description forthcoming.

### alignment

- (NSTextAlignment) alignment;
Availability: OpenStep
Description forthcoming.

### baseWritingDirection

- (NSWritingDirection) baseWritingDirection;
Availability: MacOS-X 10.2.0
Description forthcoming.

### defaultTabInterval

- (CGFloat) defaultTabInterval;
Availability: MacOS-X 10.3.0
Description forthcoming.

### firstLineHeadIndent

- (CGFloat) firstLineHeadIndent;
Availability: OpenStep
Description forthcoming.

### headIndent

- (CGFloat) headIndent;
Availability: OpenStep
Description forthcoming.

### headerLevel

- (NSInteger) headerLevel;
Availability: MacOS-X 10.4.0
Description forthcoming.

### hyphenationFactor

- (float) hyphenationFactor;
Availability: MacOS-X 10.4.0
Description forthcoming.

### lineBreakMode

- (NSLineBreakMode) lineBreakMode;
Availability: OpenStep
Description forthcoming.

### lineHeightMultiple

- (CGFloat) lineHeightMultiple;
Availability: MacOS-X 10.3.0
Description forthcoming.

### lineSpacing

- (CGFloat) lineSpacing;
Availability: OpenStep
Description forthcoming.

### maximumLineHeight

- (CGFloat) maximumLineHeight;
Availability: OpenStep
Description forthcoming.

### minimumLineHeight

- (CGFloat) minimumLineHeight;
Availability: OpenStep
Description forthcoming.

### paragraphSpacing

- (CGFloat) paragraphSpacing;
Availability: OpenStep
Description forthcoming.

### paragraphSpacingBefore

- (CGFloat) paragraphSpacingBefore;
Availability: MacOS-X 10.3.0
Description forthcoming.

### tabStops

- (NSArray*) tabStops;
Availability: OpenStep
Description forthcoming.

### tailIndent

- (CGFloat) tailIndent;
Availability: OpenStep
Description forthcoming.

### textBlocks

- (NSArray*) textBlocks;
Availability: MacOS-X 10.4.0
Description forthcoming.

### textLists

- (NSArray*) textLists;
Availability: MacOS-X 10.4.0
Description forthcoming.

### tighteningFactorForTruncation

- (float) tighteningFactorForTruncation;
Availability: MacOS-X 10.4.0
Description forthcoming.

## Instance Variables for NSParagraphStyle Class

### _alignment

@protected NSTextAlignment _alignment;
Availability: OpenStep
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _baseDirection

@protected NSWritingDirection _baseDirection;
Availability: OpenStep
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _defaultTabInterval

@protected float _defaultTabInterval;
Availability: OpenStep
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _firstLineHeadIndent

@protected float _firstLineHeadIndent;
Availability: OpenStep
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _headIndent

@protected float _headIndent;
Availability: OpenStep
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _headerLevel

@protected int _headerLevel;
Availability: OpenStep
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _hyphenationFactor

@protected float _hyphenationFactor;
Availability: OpenStep
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _lineBreakMode

@protected NSLineBreakMode _lineBreakMode;
Availability: OpenStep
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _lineHeightMultiple

@protected float _lineHeightMultiple;
Availability: OpenStep
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _lineSpacing

@protected float _lineSpacing;
Availability: OpenStep
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _maximumLineHeight

@protected float _maximumLineHeight;
Availability: OpenStep
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _minimumLineHeight

@protected float _minimumLineHeight;
Availability: OpenStep
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _paragraphSpacing

@protected float _paragraphSpacing;
Availability: OpenStep
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _paragraphSpacingBefore

@protected float _paragraphSpacingBefore;
Availability: OpenStep
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _tabStops

@protected NSMutableArray* _tabStops;
Availability: OpenStep
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _tailIndent

@protected float _tailIndent;
Availability: OpenStep
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _textBlocks

@protected NSArray* _textBlocks;
Availability: OpenStep
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _textLists

@protected NSArray* _textLists;
Availability: OpenStep
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _tighteningFactorForTruncation

@protected float _tighteningFactorForTruncation;
Availability: OpenStep
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

# Software documentation for the NSTextTab class

## NSTextTab : NSObject

> Declared in:
>   AppKit/NSParagraphStyle.h

> Conforms to:
>   NSCopying
>   NSCoding

Availability: OpenStep
Description forthcoming.

Instance Variables
Method summary

- -alignment
- -initWithTextAlignment:location:options:
- -initWithType:location:
- -location
- -options
- -tabStopType

### alignment

- (NSTextAlignment) alignment;
Availability: MacOS-X 10.3.0
Description forthcoming.

### initWithTextAlignment: location: options:

- (id) initWithTextAlignment: (NSTextAlignment)align location: (CGFloat)loc options: (NSDictionary*)options;
Availability: MacOS-X 10.3.0
Description forthcoming.

### initWithType: location:

- (id) initWithType: (NSTextTabType)type location: (CGFloat)loc;
Availability: OpenStep
Description forthcoming.

### location

- (CGFloat) location;
Availability: OpenStep
Description forthcoming.

### options

- (NSDictionary*) options;
Availability: MacOS-X 10.3.0
Description forthcoming.

### tabStopType

- (NSTextTabType) tabStopType;
Availability: OpenStep
Description forthcoming.

## Instance Variables for NSTextTab Class

### _alignment

@protected NSTextAlignment _alignment;
Availability: OpenStep
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _location

@protected float _location;
Availability: OpenStep
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _options

@protected NSDictionary* _options;
Availability: OpenStep
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _tabStopType

@protected NSTextTabType _tabStopType;
Availability: OpenStep
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

Up