---
title: length
framework: browserenginekit
role: symbol
role_heading: Instance Property
path: browserenginekit/bedirectionaltextrange/length
---

# length

The number of characters included in the directional text range.

## Declaration

```swift
var length: Int
```

## Discussion

Discussion The sign of this value indicates a direction for the text selection: Positive length indicates forward selection. Negative length indicates backward selection.

## See Also

### Measuring text range

- [offset](browserenginekit/bedirectionaltextrange/offset.md)
