Class ItemInsertedEventArgs
Arguments which are passed to Item
Inherited Members
Namespace: Unity.VisualScripting .ReorderableList
Assembly: Unity.VisualScripting.Core.Editor.dll
Syntax
public sealed class ItemInsertedEventArgs : EventArgs
Constructors
ItemInsertedEventArgs(IReorderableListAdaptor, int, bool)
Initializes a new instance of Item
Declaration
public ItemInsertedEventArgs(IReorderableListAdaptor adaptor, int itemIndex, bool wasDuplicated)
Parameters
Type | Name | Description |
---|---|---|
IReorderable |
adaptor | Reorderable list adaptor. |
int | itemIndex | Zero-based index of item. |
bool | 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 |
---|---|
IReorderable |
ItemIndex
Gets zero-based index of item which was inserted.
Declaration
public int ItemIndex { get; }
Property Value
Type | Description |
---|---|
int |
WasDuplicated
Indicates if inserted item was duplicated from another item.
Declaration
public bool WasDuplicated { get; }
Property Value
Type | Description |
---|---|
bool |