NSParagraphStyle Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A class that specifies paragraph-relevant attributes of an NSAttributedString.
[Foundation.Register("NSParagraphStyle", true)]
public class NSParagraphStyle : Foundation.NSObject, Foundation.INSMutableCopying, Foundation.INSSecureCoding, IDisposable
[<Foundation.Register("NSParagraphStyle", true)>]
type NSParagraphStyle = class
inherit NSObject
interface INSCoding
interface INativeObject
interface IDisposable
interface INSCopying
interface INSMutableCopying
interface INSSecureCoding
- Inheritance
- Derived
- Attributes
- Implements
Remarks
An immutable set of attributes associated with the display of an NSAttributedString. Important: the application developer must use the subtype NSMutableParagraphStyle if they modify the paragraph style after assignment to a NSAttributedString. Modifying an attribute of an assigned NSParagraphStyle may result in a program crash.
The members of this class can be used from a background thread.
Constructors
| Name | Description |
|---|---|
| NSParagraphStyle() |
Creates a new NSParagraphStyle with default values. |
| NSParagraphStyle(NativeHandle) |
A constructor used when creating managed representations of unmanaged objects. Called by the runtime. |
| NSParagraphStyle(NSCoder) |
A constructor that initializes the object from the data stored in the unarchiver object. |
| NSParagraphStyle(NSObjectFlag) |
Constructor to call on derived classes to skip initialization and merely allocate the object. |
Properties
| Name | Description |
|---|---|
| AccessibilityAttributedUserInputLabels | (Inherited from NSObject) |
| AccessibilityRespondsToUserInteraction | (Inherited from NSObject) |
| AccessibilityTextualContext | (Inherited from NSObject) |
| AccessibilityUserInputLabels | (Inherited from NSObject) |
| Alignment | |
| AllowsDefaultTighteningForTruncation | |
| BaseWritingDirection |
The normal writing direction. |
| Class | (Inherited from NSObject) |
| ClassHandle |
The Objective-C class handle for this class. |
| DebugDescription | (Inherited from NSObject) |
| Default |
The default text style. |
| DefaultTabInterval |
The value, in points, of tab intervals. |
| Description | (Inherited from NSObject) |
| FirstLineHeadIndent |
The indentation of the paragraph's first line. |
| Handle |
Handle (pointer) to the unmanaged object representation. (Inherited from NSObject) |
| HeadIndent |
The indentation of the paragraph's lines, other than the first. (See FirstLineHeadIndent.) |
| HyphenationFactor |
The paragraph's threshold for hyphenation. |
| IsDirectBinding | (Inherited from NSObject) |
| IsProxy | (Inherited from NSObject) |
| LineBreakMode | |
| LineBreakStrategy | |
| LineHeightMultiple |
The natural line height of the paragraph is multiplied by this factor before constraint to minimum and maximum. |
| LineSpacing |
The distance, in points, between the bottom of one line fragment and the top of the next. |
| MaximumLineHeight |
The paragraph's maximum line height, in points. |
| MinimumLineHeight |
The minimum height, in points, of lines in the paragraph. |
| ParagraphSpacing |
Distance, in points, after the paragraph. |
| ParagraphSpacingBefore |
Distance, in points, between a paragraph's top and its first line. |
| RetainCount | (Inherited from NSObject) |
| Self | (Inherited from NSObject) |
| Superclass | (Inherited from NSObject) |
| SuperHandle |
Handle used to represent the methods in the base class for this NSObject. (Inherited from NSObject) |
| TabStops |
The paragraph's tab stops, sorted by ___location. |
| TailIndent |
The distance, in points, from the margin of a text container to the end of lines. |
| TextLists | |
| UsesDefaultHyphenation | |
| Zone | (Inherited from NSObject) |