In This Topic
Swaps two points in the collection.
Syntax
var instance = new Vintasoft.Imaging.Annotation.UI.WebPointCollectionJS(points, maxLength);
var value; // Type: any
// Parameters
var first; // Type: number
var second; // Type: number
value = instance.swap(first, second);
function swap(
: number,
: number
) : any;
Parameters
- first
- Zero-based index of the first point.
- second
- Zero-based index of the second point.
Exceptions
Exception | Description |
| Thrown if arguments have wrong types. |
| Thrown if one of indexes is less than zero or one of indexes is equal to or greater than points collection length. |
Browser Compatibility
See Also