Class ItemMovedEventArgs
Arguments which are passed to ItemMovedEventHandler.
Namespace: Unity.VisualScripting.ReorderableList
Syntax
public sealed class ItemMovedEventArgs : EventArgs
Constructors
ItemMovedEventArgs(IReorderableListAdaptor, Int32, Int32)
Initializes a new instance of ItemMovedEventArgs.
Declaration
public ItemMovedEventArgs(IReorderableListAdaptor adaptor, int oldItemIndex, int newItemIndex)
Parameters
Type | Name | Description |
---|---|---|
IReorderableListAdaptor | adaptor | Reorderable list adaptor. |
Int32 | oldItemIndex | Old zero-based index of item. |
Int32 | newItemIndex | New zero-based index of item. |
Properties
Adaptor
Gets adaptor to reorderable list container which contains element.
Declaration
public IReorderableListAdaptor Adaptor { get; }
Property Value
Type | Description |
---|---|
IReorderableListAdaptor |
NewItemIndex
Gets new zero-based index of the item which was moved.
Declaration
public int NewItemIndex { get; }
Property Value
Type | Description |
---|---|
Int32 |
OldItemIndex
Gets old zero-based index of the item which was moved.
Declaration
public int OldItemIndex { get; }
Property Value
Type | Description |
---|---|
Int32 |