Class ItemInsertedEventArgs
Arguments which are passed to ItemInsertedEventHandler.
Namespace: Unity.VisualScripting.ReorderableList
Syntax
public sealed class ItemInsertedEventArgs : EventArgs
Constructors
ItemInsertedEventArgs(IReorderableListAdaptor, Int32, Boolean)
Initializes a new instance of ItemInsertedEventArgs.
Declaration
public ItemInsertedEventArgs(IReorderableListAdaptor adaptor, int itemIndex, bool wasDuplicated)
Parameters
Type | Name | Description |
---|---|---|
IReorderableListAdaptor | adaptor | Reorderable list adaptor. |
Int32 | itemIndex | Zero-based index of item. |
Boolean | wasDuplicated | Indicates if inserted item was duplicated from another item. |
Properties
Adaptor
Gets adaptor to reorderable list container which contains element.
Declaration
public IReorderableListAdaptor Adaptor { get; }
Property Value
Type | Description |
---|---|
IReorderableListAdaptor |
ItemIndex
Gets zero-based index of item which was inserted.
Declaration
public int ItemIndex { get; }
Property Value
Type | Description |
---|---|
Int32 |
WasDuplicated
Indicates if inserted item was duplicated from another item.
Declaration
public bool WasDuplicated { get; }
Property Value
Type | Description |
---|---|
Boolean |