Method: AutoItX3::TreeView#num_subitems
- Defined in:
- lib/AutoItX3/control.rb
#num_subitems(item) ⇒ Object
Returns the number of children of item.
Parameters
item-
The path of the item to check.
Return value
The number of subitems of that node.
Raises
- Au3Error
-
Control or window not found.
Example
p ctrl.num_subitems("#0") #=> 8
Remarks
This method returns 0 if the item doesn’t exist.
924 925 926 |
# File 'lib/AutoItX3/control.rb', line 924 def num_subitems(item) send_command_to_tree_view("GetItemCount", item).to_i end |