Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

WinListItem::GetColumnValues Method ()

 

Gets the column values that is sub-items within this list view.

Namespace:   Microsoft.VisualStudio.TestTools.UITesting.WinControls
Assembly:  Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)

public:
array<String^>^ GetColumnValues()

Return Value

Type: array<System::String^>^

All the columns of the list view item.

Exception Condition
InvalidOperationException

The list item is not part of a list view control or the list view control is not in report view mode.

Example: Get all the columns of the list view item.

string[] columnValues = myListViewItem.GetColumnValues(); Gets the subItems of the listView item

Return to top
Show: