Contents

length

The number of characters included in the directional text range.

Declaration

var length: Int

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