---
title: stringValue()
framework: pdfkit
role: symbol
role_heading: Instance Method
path: pdfkit/pdfannotationtextwidget/stringvalue()
---

# stringValue()

Returns the string assigned to the annotation.

## Declaration

```swift
func stringValue() -> String!
```

## Return Value

Return Value The string assigned to the annotation.

## See Also

### Working with Annotation Strings

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