Class FZagalaSpecArrayElementMover#
Defined in File ZagalaSpecArrayElementMover.h
Class Documentation#
-
class FZagalaSpecArrayElementMover#
Moves an element of an array of objects (scenarios, steps) to another position of the same array.
The change is one undoable transaction and the owner’s PostEditChangeProperty runs, so listeners react as for any other edit.
Public Static Functions
-
static bool Move(const FZagalaSpecDocumentRowOwnership &Ownership, int32 NewIndex)#
Moves the element at the location to NewIndex.
The elements in between shift by one position.
- Parameters:
Ownership – Where the element lives (owner, array name and current index).
NewIndex – The index the element has after the move.
- Returns:
True if the element was moved; false (and nothing is changed) if the location is not valid, the property is not an array of objects, NewIndex is out of range or NewIndex is the current index.
-
static bool Move(const FZagalaSpecDocumentRowOwnership &Ownership, int32 NewIndex)#