Maybe this will help others out:
'ListView.Items' is a collection of all the Items in the ' ListView',
Each ' ListView.Item' contains a collection of SubItems.

To add an ' Item' in column 0 you would do this:
  • ' $Item0 = $ListView.Items.Add($System.ListViewItem("Item 1A"))'

To add a SubItem to $Item0 you could use one of these two methods:
  • ' $Item1 = $ListView.Items.Item(0).SubItems.Add($System.ListViewSubItem("Item 1B"))'
  • ' $Item1 = $Item0.SubItems.Add($System.ListViewSubItem("Item 1B"))'


The (first column) Item Text is referenced like this:
'$Item0Text = $ListView1.Items.Item(Row).Text'
'Item(Row)' Row is the row index of the Item you are trying access, this is a zero based index like an array. So if you have 3 rows the index values will be 0,1,2. Zero being the top most Item in the column.

Any column after the first (Second Column, Third Column, Fourth Column,...), is in the SubItems collection of the Item in the first column.
The second column Item Text is referenced like this:
'$Item1Text = $ListView1.Items.Item(Row).SubItems.Item(Column).Text'
'Item(Column)' Column is the column index of the Item you are trying access, this is also a zero based index like an array. So if you have 3 columns the index values will be 0,1,2. Zero being the left most Item (or column 0).

If you wanted to access each 'Item.Text' in a 'ListView', this would be one way to do it:
Code:
For $Row = 0 to $ListView.Items.Count
	For $Column = 0 to $ListView.Items.Item($Row).SubItems.Count-1
		$ItemText = $ListView.Items.Item($Row).SubItems.Item($Column).Text
		? $ItemText
	Next
Next

_________________________
Wait don't order yet,... get KiXforms Designer .NET 2.0 (Beta)
KiXforms Designer .NET 2.0 (Beta)