Gets the number of selected characters.

<void> Selection.getLength(<RequestNumberCallback> callback, [<ErrorCallback> errorCallback])

Parameters

Parameter Description
callback Receives the number of selected characters.
errorCallback Optional. Is called when the operation failed with an error.

Further Reading

Learn more about the Javascript: Selection.getLength Method in the Text Control Blog: