В этом разделе
Swaps the specified images in the collection.
Синтаксис
var instance = new Vintasoft.Shared.WebImageCollectionJS();
var value; // Type: any
// Parameters
var firstIndex; // Type: number
var secondIndex; // Type: number
value = instance.swap(firstIndex, secondIndex);
function swap(
: number,
: number
) : any;
Parameters
- firstIndex
- The index of first image that should be swapped.
- secondIndex
- The index of second image that should be swapped.
Исключения
Исключение | Описание |
| Thrown if argument has wrong type. |
| Thrown if index is less than zero or index is equal or greater than collection length. |
Смотрите также