Class ItemMovingEventArgs
Arguments which are passed to ItemMovingEventHandler.
Namespace: Unity.VisualScripting.ReorderableList
Syntax
public sealed class ItemMovingEventArgs : CancelEventArgs
Constructors
ItemMovingEventArgs(IReorderableListAdaptor, Int32, Int32)
Initializes a new instance of ItemMovingEventArgs.
Declaration
public ItemMovingEventArgs(IReorderableListAdaptor adaptor, int itemIndex, int destinationItemIndex)
Parameters
Type | Name | Description |
---|---|---|
IReorderableListAdaptor | adaptor | Reorderable list adaptor. |
Int32 | itemIndex | Zero-based index of item. |
Int32 | 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 |
---|---|
IReorderableListAdaptor |
DestinationItemIndex
Gets the new candidate zero-based index for the item.
Declaration
public int DestinationItemIndex { get; }
Property Value
Type | Description |
---|---|
Int32 |
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 |
---|---|
Int32 |
NewItemIndex
Gets zero-based index of item after it has been moved.
Declaration
public int NewItemIndex { get; }
Property Value
Type | Description |
---|---|
Int32 |