Retrive the a cell (UIControl) from the 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 UIAControl GetCell(
	int row,
	int column
)
Visual Basic (Declaration)
Public Function GetCell ( _
	row As Integer, _
	column As Integer _
) As UIAControl
Visual C++
public:
virtual UIAControl^ GetCell(
	int row, 
	int column
) sealed

Parameters

row
Type: System..::.Int32
the row index in the table first row is 0
column
Type: System..::.Int32
The column index in the table, first column is 0

Return Value

UIControl if cell found, null if no cell in provided row/cell

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