One Logo Pool Ball
UIKit · IOS API REFERENCE

NSTextContainer

class · iOS 7.0+ · SDK 27.1

class NSTextContainer

Members (22)

init · iOS 7.0+

init

TypeScript
static initCoder(coder: _Foundation_NSCoder): NSTextContainer
Swift declaration
init(coder: NSCoder)
init · iOS 7.0+

init

TypeScript
static initSize(size: { width: number; height: number }): NSTextContainer
Swift declaration
init(size: CGSize)
method · iOS 7.0+

lineFragmentRect

TypeScript
lineFragmentRect(proposedRect: { x: number; y: number; width: number; height: number }, characterIndex: number, baseWritingDirection: NSWritingDirection, remainingRect?: ("animatableData" | SDKHandle) | null): { x: number; y: number; width: number; height: number }
Swift declaration
func lineFragmentRect(forProposedRect proposedRect: CGRect, at characterIndex: Int, writingDirection baseWritingDirection: NSWritingDirection, remaining remainingRect: UnsafeMutablePointer<CGRect>?) -> CGRect
method · iOS 9.0+

replaceLayoutManager

TypeScript
replaceLayoutManager(newLayoutManager: NSLayoutManager): void
Swift declaration
func replaceLayoutManager(_ newLayoutManager: NSLayoutManager)
get · iOS 7.0+

exclusionPaths

TypeScript
get exclusionPaths(): Array<UIBezierPath>
Swift declaration
var exclusionPaths: [UIBezierPath] { get set }
set · iOS 7.0+

exclusionPaths

TypeScript
set exclusionPaths(value: Array<UIBezierPath>)
Swift declaration
var exclusionPaths: [UIBezierPath] { get set }
get · iOS 7.0+

heightTracksTextView

TypeScript
get heightTracksTextView(): boolean
Swift declaration
var heightTracksTextView: Bool { get set }
set · iOS 7.0+

heightTracksTextView

TypeScript
set heightTracksTextView(value: boolean)
Swift declaration
var heightTracksTextView: Bool { get set }
get · iOS 9.0+

layoutManager

TypeScript
get layoutManager(): (NSLayoutManager) | null
Swift declaration
unowned(unsafe) var layoutManager: NSLayoutManager? { get set }
set · iOS 9.0+

layoutManager

TypeScript
set layoutManager(value: (NSLayoutManager) | null)
Swift declaration
unowned(unsafe) var layoutManager: NSLayoutManager? { get set }
get · iOS 7.0+

lineBreakMode

TypeScript
get lineBreakMode(): NSLineBreakMode
Swift declaration
var lineBreakMode: NSLineBreakMode { get set }
set · iOS 7.0+

lineBreakMode

TypeScript
set lineBreakMode(value: NSLineBreakMode)
Swift declaration
var lineBreakMode: NSLineBreakMode { get set }
get · iOS 7.0+

lineFragmentPadding

TypeScript
get lineFragmentPadding(): number
Swift declaration
var lineFragmentPadding: CGFloat { get set }
set · iOS 7.0+

lineFragmentPadding

TypeScript
set lineFragmentPadding(value: number)
Swift declaration
var lineFragmentPadding: CGFloat { get set }
get · iOS 7.0+

maximumNumberOfLines

TypeScript
get maximumNumberOfLines(): number
Swift declaration
var maximumNumberOfLines: Int { get set }
set · iOS 7.0+

maximumNumberOfLines

TypeScript
set maximumNumberOfLines(value: number)
Swift declaration
var maximumNumberOfLines: Int { get set }
get · iOS 9.0+

isSimpleRectangularTextContainer

TypeScript
get isSimpleRectangularTextContainer(): boolean
Swift declaration
var isSimpleRectangularTextContainer: Bool { get }
get · iOS 7.0+

size

TypeScript
get size(): { width: number; height: number }
Swift declaration
var size: CGSize { get set }
set · iOS 7.0+

size

TypeScript
set size(value: { width: number; height: number })
Swift declaration
var size: CGSize { get set }
get · iOS 15.0+

textLayoutManager

TypeScript
get textLayoutManager(): (NSTextLayoutManager) | null
Swift declaration
weak var textLayoutManager: NSTextLayoutManager? { get }
get · iOS 7.0+

widthTracksTextView

TypeScript
get widthTracksTextView(): boolean
Swift declaration
var widthTracksTextView: Bool { get set }
set · iOS 7.0+

widthTracksTextView

TypeScript
set widthTracksTextView(value: boolean)
Swift declaration
var widthTracksTextView: Bool { get set }

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

NSTextContainer.init()

inherited init: cannot prove legal (class declares 1 custom initializer)

All UIKit types →