VintaSoft Imaging .NET SDK 15.1: Documentation for Web developer
Vintasoft.Imaging.UI Namespace / WebDocumentViewerBaseJS type / swapPages Property
Syntax Exceptions BrowserCompatibility SeeAlso
In This Topic
swapPages Method
In This Topic
Swaps the specified pages in source document.
Syntax
var instance = new Vintasoft.Imaging.UI.WebDocumentViewerBaseJS(settings);

var value; // Type: any

// Parameters
var firstIndex; // Type: number
var secondIndex; // Type: number

value = instance.swapPages(firstIndex, secondIndex);

Parameters

firstIndex
An index of first page to swap.
secondIndex
An index of second page to swap.
Exceptions
ExceptionDescription
Thrown if argument has wrong type.
Thrown if index is less than zero or index is equal or greater than collection length.
Browser Compatibility
56+
45+
11
See Also