---
title: "widthValueType(for:edge:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nstextblock/widthvaluetype(for:edge:)"
---

# widthValueType(for:edge:)

Returns the value type of an edge of a specified layer of the text block.

## Declaration

```swift
func widthValueType(for layer: NSTextBlock.Layer, edge: NSRectEdge) -> NSTextBlock.ValueType
```

## Parameters

- `layer`: The layer to examine.
- `edge`: The edge of the layer to examine.

## Return Value

Return Value The value type of the edge of layer. This determines how the value for this edge of layer should be interpreted.

## 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)
- [NSTextBlock.Layer](appkit/nstextblock/layer.md)
