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)

Syntax

'Declaration
Public Function GetColumnValues As String()
public string[] GetColumnValues()
public:
array<String^>^ GetColumnValues()
member GetColumnValues : unit -> string[] 
public function GetColumnValues() : String[]

Return Value

Type: array<String[]
All the columns of the list view item.

Exceptions

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.

Remarks

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

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

.NET Framework Security

See Also

Reference

WinListItem Class

Microsoft.VisualStudio.TestTools.UITesting.WinControls Namespace