Retrive the number of columns in current UIATable control.

Namespace:  QAliber.Engine.Controls.UIA
Assembly:  QAliber.Engine (in QAliber.Engine.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public int Columns { get; }
Visual Basic (Declaration)
Public ReadOnly Property Columns As Integer
Visual C++
public:
virtual property int Columns {
	int get () sealed;
}

Return Value

int number of columns

Examples

CopyC#
//Run WMP 11 on windows xp - should open in library
System.Diagnostics.Process recoderProc = System.Diagnostics.Process.Start("wmplayer");
UIAWindow wmpWin = Desktop.UIA[@"Windows Media Player", @"WMPlayerApp", @"UIAWindow"] as UIAWindow;
UIATable primaryListViewTbl = wmpWin[@"Windows Media Player", @"WMPAppHost", @"UIAPane"][@"", @"WMP Skin Host", @"UIAPane"][@"LibraryContainer", @"ATL:131D5748", @"UIAPane"][@"PrimaryListView", @"SysListView32", @"UIATable"] as UIATable;
int numOfRows = primaryListViewTbl.Rows;
int numOfCol = primaryListViewTbl.Columns;
string titleName = primaryListViewTbl.GetCell(0, 2).Name;

See Also