ICommandSystem.ItemById [Property][Get]
- Last UpdatedJul 18, 2023
- 1 minute read
Gets the Command at a supplied index location in this collection.
Defined As
-
[VBA] Object Command
-
[Cicode] OBJECT hCommand
-
[C++] ICommand* Command
Parameters
commandId
[in] Indicates command ID of the command to return from this collection.
Calling Syntax
This example assumes there is a valid CommandSystem object as retrieved from a Process Analyst. (for example, VBA: ProcessAnalyst.CommandSystem).
[VBA]
Sub Example(CommandSystem As Object)
Dim command As Object
`Getting Property value
Set command = CommandSystem.ItemById(Citect_Command_AddPen)
End Sub
[Cicode]
FUNCTION Example(OBJECT hCommandSystem)
// Getting property value
OBJECT hCommand = _ObjectCallMethod
(hCommandSystem," get_ItemById", Citect_Command_AddPen);
END