---
title: NSTextBlock.Layer
framework: appkit
role: symbol
role_heading: Enumeration
path: appkit/nstextblock/layer
---

# NSTextBlock.Layer

The following constants specify values used by the properties and methods contentWidthValueType, setWidth(_:type:for:edge:), setWidth(_:type:for:), width(for:edge:), and widthValueType(for:edge:) to specify text block layer values.

## Declaration

```swift
enum Layer
```

## Topics

### Constants

- [NSTextBlock.Layer.padding](appkit/nstextblock/layer/padding.md)
- [NSTextBlock.Layer.border](appkit/nstextblock/layer/border.md)
- [NSTextBlock.Layer.margin](appkit/nstextblock/layer/margin.md)

### Initializers

- [init(rawValue:)](appkit/nstextblock/layer/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Getting and setting margins, borders, and padding

- [setWidth(_:type:for:edge:)](appkit/nstextblock/setwidth(_:type:for:edge:).md)
- [setWidth(_:type:for:)](appkit/nstextblock/setwidth(_:type:for:).md)
- [width(for:edge:)](appkit/nstextblock/width(for:edge:).md)
- [widthValueType(for:edge:)](appkit/nstextblock/widthvaluetype(for:edge:).md)
