iOS Guides | Samples

MonoTouch.UIKit.NSParagraphStyle Class

A class that specifies paragraph-relevant attributes of an NSAttributedString.

See Also: NSParagraphStyle


[MonoTouch.Foundation.Register("NSParagraphStyle", true)]
[MonoTouch.ObjCRuntime.Introduced(MonoTouch.ObjCRuntime.PlatformName.iOS, 6, 0, MonoTouch.ObjCRuntime.PlatformArchitecture.None, null)]
public class NSParagraphStyle : NSObject, INSMutableCopying, INSSecureCoding, IDisposable


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.

Related content


Namespace: MonoTouch.UIKit
Assembly: monotouch (in monotouch.dll)
Assembly Versions:

The members of MonoTouch.UIKit.NSParagraphStyle are listed below.

See Also: NSObject

Public Constructors

Default constructor, initializes a new instance of this class.
A constructor that initializes the object from the data stored in the unarchiver object.
Constructor to call on derived classes to skip initialization and merely allocate the object.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Public Properties

AlignmentUITextAlignment. Text alignment.
AllowsDefaultTighteningForTruncationBoolean. Whether the system can try to tighten the text prior to truncating it.
BaseWritingDirectionNSWritingDirection. The normal writing direction.
ClassHandleIntPtr. The handle for this class.
DefaultNSParagraphStyle. The default text style.
DefaultTabIntervalSingle. The value, in points, of tab intervals.
FirstLineHeadIndentSingle. The indentation of the paragraph's first line.
HeadIndentSingle. The indentation of the paragraph's lines, other than the first. (See NSParagraphStyle.FirstLineHeadIndent.)
HyphenationFactorSingle. The paragraph's threshold for hyphenation.
LineBreakModeUILineBreakMode. The UILineBreakMode used by the paragraph.
LineHeightMultipleSingle. The natural line height of the paragraph is multiplied by this factor before constraint to minimum and maximum.
LineSpacingSingle. The distance, in points, between the bottom of one line fragment and the top of the next.
MaximumLineHeightSingle. The paragraph's maximum line height, in points.
MinimumLineHeightSingle. The minimum height, in points, of lines in the paragraph.
ParagraphSpacingSingle. Distance, in points, after the paragraph.
ParagraphSpacingBeforeSingle. Distance, in points, between a paragraph's top and its first line.
TabStopsNSTextTab[]. The paragraph's tab stops, sorted by location.
TailIndentSingle. The distance, in points, from the margin of a text container to the end of lines.

Public Methods

Copy(NSZone) : NSObject
Performs a copy of the underlying Objective-C object.
GetDefaultWritingDirection(String) : NSWritingDirection
The default writing direction for the specified ISO language identifier.
MutableCopy(NSZone) : NSObject
Performs a copy of the underlying Objective-C object.