Return Value

Return

Meaning

>= 0

Index of the newly added segment. The method was successful.

-1

An error occurred.