---
title: "setValue(_:type:for:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/nstextblock/setvalue(_:type:for:)"
---

# setValue(_:type:for:)

## Declaration

```swift
func setValue(_ value: CGFloat, type: NSTextBlock.ValueType, for dimension: NSTextBlock.Dimension)
```

## See Also

### Setting content dimensions

- [value(for:)](uikit/nstextblock/value(for:).md)
- [valueType(for:)](uikit/nstextblock/valuetype(for:).md)
- [setContentWidth(_:type:)](uikit/nstextblock/setcontentwidth(_:type:).md)
- [contentWidth](uikit/nstextblock/contentwidth.md)
- [contentWidthValueType](uikit/nstextblock/contentwidthvaluetype.md)
