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: Not in OpenStep/MacOS-X
Description forthcoming.

### setDefaultTabInterval:

- (void) setDefaultTabInterval: (float)interval;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.

### setFirstLineHeadIndent:

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

### setHeadIndent:

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

### setHeaderLevel:

- (void) setHeaderLevel: (int)level;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.

### setHyphenationFactor:

- (void) setHyphenationFactor: (float)factor;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.

### setLineBreakMode:

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

### setLineHeightMultiple:

- (void) setLineHeightMultiple: (float)factor;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.

### setLineSpacing:

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

### setMaximumLineHeight:

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

### setMinimumLineHeight:

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

### setParagraphSpacing:

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

### setParagraphSpacingBefore:

- (void) setParagraphSpacingBefore: (float)spacing;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.

### setParagraphStyle:

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

### setTabStops:

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

### setTailIndent:

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

### setTextBlocks:

- (void) setTextBlocks: (NSArray*)blocks;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.

### setTextLists:

- (void) setTextLists: (NSArray*)lists;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.

### setTighteningFactorForTruncation:

- (void) setTighteningFactorForTruncation: (float)factor;
Availability: Not in OpenStep/MacOS-X
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: Not in OpenStep/MacOS-X
Description forthcoming.

### alignment

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

### baseWritingDirection

- (NSWritingDirection) baseWritingDirection;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.

### defaultTabInterval

- (float) defaultTabInterval;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.

### firstLineHeadIndent

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

### headIndent

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

### headerLevel

- (int) headerLevel;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.

### hyphenationFactor

- (float) hyphenationFactor;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.

### lineBreakMode

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

### lineHeightMultiple

- (float) lineHeightMultiple;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.

### lineSpacing

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

### maximumLineHeight

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

### minimumLineHeight

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

### paragraphSpacing

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

### paragraphSpacingBefore

- (float) paragraphSpacingBefore;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.

### tabStops

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

### tailIndent

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

### textBlocks

- (NSArray*) textBlocks;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.

### textLists

- (NSArray*) textLists;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.

### tighteningFactorForTruncation

- (float) tighteningFactorForTruncation;
Availability: Not in OpenStep/MacOS-X
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: Not in OpenStep/MacOS-X
Description forthcoming.

### initWithTextAlignment: location: options:

- (id) initWithTextAlignment: (NSTextAlignment)align location: (float)loc options: (NSDictionary*)options;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.

### initWithType: location:

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

### location

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

### options

- (NSDictionary*) options;
Availability: Not in OpenStep/MacOS-X
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