---
title: stringLength()
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nstextfinderclient/stringlength()
---

# stringLength()

Returns the full length of the conceptually concatenated string return by the stringAtIndex:effectiveRange:endsWithSearchBoundary: method.

## Declaration

```swift
optional func stringLength() -> Int
```

## Return Value

Return Value Returns the full length of the conceptually concatenated string in the second model, that is, the sum of the lengths of all of its substrings.

## Discussion

Discussion See NSTextFinder for more information.

## See Also

### String Searching

- [string](appkit/nstextfinderclient/string.md)
- [string(at:effectiveRange:endsWithSearchBoundary:)](appkit/nstextfinderclient/string(at:effectiverange:endswithsearchboundary:).md)
