---
title: "setStringValue(_:)"
framework: pdfkit
role: symbol
role_heading: Instance Method
path: "pdfkit/pdfannotationtextwidget/setstringvalue(_:)"
---

# setStringValue(_:)

Sets the string for the annotation.

## Declaration

```swift
func setStringValue(_ value: String!)
```

## Parameters

- `value`: The string to be assigned to the annotation.

## See Also

### Working with Annotation Strings

- [stringValue()](pdfkit/pdfannotationtextwidget/stringvalue().md)
- [maximumLength()](pdfkit/pdfannotationtextwidget/maximumlength().md)
- [setMaximumLength(_:)](pdfkit/pdfannotationtextwidget/setmaximumlength(_:).md)
