ReorderableListControlDoCommand Method (String, Int32, IReorderableListAdaptor) |
Call to manually perform command.
Namespace: Rotorz.ReorderableListAssembly: Editor.ReorderableList (in Editor.ReorderableList.dll) Version: 0.0.0.0 (0.3.0.0)
Syntaxpublic bool DoCommand(
string commandName,
int itemIndex,
IReorderableListAdaptor adaptor
)
public function DoCommand(
commandName : String,
itemIndex : int,
adaptor : IReorderableListAdaptor
) : boolean
Parameters
- commandName
- Type: SystemString
Name of command. This is the text shown in the context menu. - itemIndex
- Type: SystemInt32
Zero-based index of item which was right-clicked. - adaptor
- Type: Rotorz.ReorderableListIReorderableListAdaptor
Reorderable list adaptor.
Return Value
Type:
Boolean
A value of
true if command was known; otherwise
false.
RemarksWarning message is logged to console if attempted to execute unknown command.
See Also