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.

WinList::GetColumnNames Method ()

 

Gets the names of all the columns of the list view.

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

public:
array<String^>^ GetColumnNames()

Return Value

Type: array<System::String^>^

The names of all columns of the list view.

Exception Condition
InvalidOperationException

The list is not a list view control.

Example - Get the names of all the columns of the list view.

string[] columnNames = myListView.GetColumnNames();

Return to top
Show: