VintaSoft Imaging .NET SDK 15.1: Documentation for Web developer
Vintasoft.Imaging.Annotation.UI Namespace / WebPointCollectionJS type / swap Property
Syntax Exceptions BrowserCompatibility SeeAlso
In This Topic
swap Method
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);

Parameters

first
Zero-based index of the first point.
second
Zero-based index of the second point.
Exceptions
ExceptionDescription
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
56+
45+
11
See Also