swapListItems

fun swapListItems(viewModelInstanceHandle: ViewModelInstanceHandle, propertyPath: String, indexA: Int, indexB: Int)

Swaps two items in a list property by their indices.

Parameters

viewModelInstanceHandle

The handle of the view model instance that owns the list property.

propertyPath

The path to the list property. Slash delimited.

indexA

The index of the first item to swap.

indexB

The index of the second item to swap.

Throws

If the CommandQueue has been released.