One Logo Pool Ball
UIKit · IOS API REFERENCE

NSTextBlock

class · iOS 6.0+ · SDK 27.1

class NSTextBlock

Members (19)

method · iOS 27.0+

borderColor

TypeScript
borderColor(rectEdge: _CoreFoundation_CGRectEdge): (UIColor) | null
Swift declaration
func borderColor(for rectEdge: CGRectEdge) -> UIColor?
init · iOS 6.0+

init

TypeScript
static init(): NSTextBlock
Swift declaration
init()
init · iOS 6.0+

init

TypeScript
static initCoder(coder: _Foundation_NSCoder): (NSTextBlock) | null
Swift declaration
init?(coder: NSCoder)
method · iOS 6.0+

setBorderColor

TypeScript
setBorderColor(color?: (UIColor) | null): void
Swift declaration
func setBorderColor(_ color: UIColor?)
method · iOS 27.0+

setBorderColor

TypeScript
setBorderColorRectEdge(borderColor: (UIColor) | null, rectEdge: _CoreFoundation_CGRectEdge): void
Swift declaration
func setBorderColor(_ borderColor: UIColor?, rectEdge: CGRectEdge)
method · iOS 6.0+

setContentWidth

TypeScript
setContentWidth(contentWidth: number, type: NSTextBlock_ValueType): void
Swift declaration
func setContentWidth(_ contentWidth: CGFloat, type: NSTextBlock.ValueType)
method · iOS 6.0+

setValue

TypeScript
setValue(value: number, type: NSTextBlock_ValueType, dimension: NSTextBlock_Dimension): void
Swift declaration
func setValue(_ value: CGFloat, type: NSTextBlock.ValueType, for dimension: NSTextBlock.Dimension)
method · iOS 6.0+

setWidth

TypeScript
setWidthTypeFor(width: number, type: NSTextBlock_ValueType, layer: NSTextBlock_Layer): void
Swift declaration
func setWidth(_ width: CGFloat, type: NSTextBlock.ValueType, for layer: NSTextBlock.Layer)
method · iOS 27.0+

setWidth

TypeScript
setWidthTypeForRectEdge(width: number, type: NSTextBlock_ValueType, layer: NSTextBlock_Layer, rectEdge: _CoreFoundation_CGRectEdge): void
Swift declaration
func setWidth(_ width: CGFloat, type: NSTextBlock.ValueType, for layer: NSTextBlock.Layer, rectEdge: CGRectEdge)
method · iOS 6.0+

value

TypeScript
value(dimension: NSTextBlock_Dimension): number
Swift declaration
func value(for dimension: NSTextBlock.Dimension) -> CGFloat
method · iOS 6.0+

valueType

TypeScript
valueType(dimension: NSTextBlock_Dimension): NSTextBlock_ValueType
Swift declaration
func valueType(for dimension: NSTextBlock.Dimension) -> NSTextBlock.ValueType
method · iOS 27.0+

width

TypeScript
width(layer: NSTextBlock_Layer, rectEdge: _CoreFoundation_CGRectEdge): number
Swift declaration
func width(for layer: NSTextBlock.Layer, rectEdge: CGRectEdge) -> CGFloat
method · iOS 27.0+

widthValueType

TypeScript
widthValueType(layer: NSTextBlock_Layer, rectEdge: _CoreFoundation_CGRectEdge): NSTextBlock_ValueType
Swift declaration
func widthValueType(for layer: NSTextBlock.Layer, rectEdge: CGRectEdge) -> NSTextBlock.ValueType
get · iOS 6.0+

backgroundColor

TypeScript
get backgroundColor(): (UIColor) | null
Swift declaration
@NSCopying var backgroundColor: UIColor? { get set }
set · iOS 6.0+

backgroundColor

TypeScript
set backgroundColor(value: (UIColor) | null)
Swift declaration
@NSCopying var backgroundColor: UIColor? { get set }
get · iOS 6.0+

contentWidth

TypeScript
get contentWidth(): number
Swift declaration
var contentWidth: CGFloat { get }
get · iOS 6.0+

contentWidthValueType

TypeScript
get contentWidthValueType(): NSTextBlock_ValueType
Swift declaration
var contentWidthValueType: NSTextBlock.ValueType { get }
get · iOS 6.0+

verticalAlignment

TypeScript
get verticalAlignment(): NSTextBlock_VerticalAlignment
Swift declaration
var verticalAlignment: NSTextBlock.VerticalAlignment { get set }
set · iOS 6.0+

verticalAlignment

TypeScript
set verticalAlignment(value: NSTextBlock_VerticalAlignment)
Swift declaration
var verticalAlignment: NSTextBlock.VerticalAlignment { get set }

Skipped declarations

No declarations were skipped in this snapshot.

All UIKit types →