Class ItemMovingEventArgs
Arguments which are passed to Item
Inherited Members
Namespace: Unity.VisualScripting .ReorderableList
Assembly: Unity.VisualScripting.Core.Editor.dll
Syntax
public sealed class ItemMovingEventArgs : CancelEventArgs
Constructors
ItemMovingEventArgs(IReorderableListAdaptor, int, int)
Initializes a new instance of Item
Declaration
public ItemMovingEventArgs(IReorderableListAdaptor adaptor, int itemIndex, int destinationItemIndex)
Parameters
Type | Name | Description |
---|---|---|
IReorderable |
adaptor | Reorderable list adaptor. |
int | itemIndex | Zero-based index of item. |
int | destinationItemIndex | Xero-based index of item destination. |
Properties
Adaptor
Gets adaptor to reorderable list container which contains element.
Declaration
public IReorderableListAdaptor Adaptor { get; }
Property Value
Type | Description |
---|---|
IReorderable |
DestinationItemIndex
Gets the new candidate zero-based index for the item.
Declaration
public int DestinationItemIndex { get; }
Property Value
Type | Description |
---|---|
int |
See Also
ItemIndex
Gets current zero-based index of item which is going to be moved.
Declaration
public int ItemIndex { get; }
Property Value
Type | Description |
---|---|
int |
NewItemIndex
Gets zero-based index of item after it has been moved.
Declaration
public int NewItemIndex { get; }
Property Value
Type | Description |
---|---|
int |