Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.VisualStudio.TestTools.UITesting.WinControls Namespace