GenericListAdaptor(T).CanDrag Method

Rotorz ReorderableList

GenericListAdaptorTCanDrag Method
Determines whether an item can be reordered by dragging mouse.

Namespace: Rotorz.ReorderableList
Assembly: Editor.ReorderableList (in Editor.ReorderableList.dll) Version: 0.0.0.0 (0.3.0.0)
Syntax
public virtual bool CanDrag(
	int index
)
public virtual function CanDrag(
	index : int
) : boolean

Parameters

index
Type: SystemInt32
Zero-based index for list element.

Return Value

Type: Boolean
A value of true if item can be dragged; otherwise false.

Implements

IReorderableListAdaptorCanDrag(Int32)
Remarks

This should be a light-weight method since it will be used to determine whether grab handle should be included for each item in a reorderable list.

Please note that returning a value of false does not prevent movement on list item since other draggable items can be moved around it.

See Also