---
title: "setWidth(_:type:for:rectEdge:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nstextblock/setwidth(_:type:for:rectedge:)"
---

# setWidth(_:type:for:rectEdge:)

## Declaration

```swift
func setWidth(_ width: CGFloat, type: NSTextBlock.ValueType, for layer: NSTextBlock.Layer, rectEdge: CGRectEdge)
```
