Class ItemMovedEventArgs
Arguments which are passed to Item
Inherited Members
Namespace: Unity.VisualScripting .ReorderableList
Assembly: Unity.VisualScripting.Core.Editor.dll
Syntax
public sealed class ItemMovedEventArgs : EventArgs
Constructors
ItemMovedEventArgs(IReorderableListAdaptor, int, int)
Initializes a new instance of Item
Declaration
public ItemMovedEventArgs(IReorderableListAdaptor adaptor, int oldItemIndex, int newItemIndex)
Parameters
Type | Name | Description |
---|---|---|
IReorderable |
adaptor | Reorderable list adaptor. |
int | oldItemIndex | Old zero-based index of item. |
int | 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 |
---|---|
IReorderable |
NewItemIndex
Gets new zero-based index of the item which was moved.
Declaration
public int NewItemIndex { get; }
Property Value
Type | Description |
---|---|
int |
OldItemIndex
Gets old zero-based index of the item which was moved.
Declaration
public int OldItemIndex { get; }
Property Value
Type | Description |
---|---|
int |