Table of Contents

Interface ITable

A PowerBuilder table.

Inherited Members
IUiObjectWithLayoutInfo.IsRightAligned
IUiObjectWithLayoutInfo.IsRightToLeftLayout
IUiObjectWithLayoutInfo.IsRightToLeftReading
IUiObjectBase.ObjectName
IUiObjectBase.AttachedText
IUiObjectBase.Text
IUiObjectBase.WindowExtendedStyle
IUiObjectBase.WindowStyle
IUiObjectBase.WindowClassRegExp
IUiObjectBase.WindowId
IUiObjectBase.MouseMove(Location)
IUiObjectBase.IsFocused
IUiObjectBase.NativeClass
IUiObjectBase.WindowTitleRegExp
IUiObjectBase.Handle
IClickable.Click(MouseButton)
IClickable.Click(ClickArgs)
IDoubleClickable.DoubleClick(MouseButton)
IDoubleClickable.DoubleClick(ClickArgs)
ILocationInfoProvider.Location
ILocationInfoProvider.AbsoluteLocation
ILocationInfoProvider.Size
ISupportSendKeys.SendKeys(string, KeyModifier)
ISupportSendKeys.SendKeys(string)
ISupportDragAndDrop.DragAndDropOn(ISupportDragAndDrop)
ISupportDragAndDrop.DragAndDropOn(ISupportDragAndDrop, DragAndDropArgs)
IEnabledProvider.IsEnabled
IVisibleProvider.IsVisible
ITestObject.GetDescription()
ITestObject.SetDescription(IDescription)
ITestObject.FindChildren<TChild>(IDescription)
ITestObject.Exists()
ITestObject.Exists(uint)
ITestObject.GetSnapshot()
ITestObject.Highlight()
ITestObject.HighlightMatches<TChild>(IDescription)
ITestObject.GetTextLocations(string)
ITestObject.GetTextLocations(string, Rectangle)
ITestObject.GetVisibleText()
ITestObject.GetVisibleText(Rectangle)
ITestObject.VerifyImageExists(Image, byte)
ITestObject.VerifyImageMatch(Image, byte, byte)
ITestObject.VerifyImageMatch(Image, ImageMaskArea, byte, byte)
ITestObject.CallFTMethod(string, params object[])
ITestObject.CallFTMethod<TResult>(string, params object[])
ITestObject.Parent
ITestObject.DisplayName
ITestObjectDescriber.Describe<TChild>(IDescription)
Namespace: HP.LFT.SDK.PowerBuilder
Assembly: HP.LFT.SDK.dll
Syntax
public interface ITable : IUiObjectWithLayoutInfo, IUiObjectBase, IUiObjectBase, IClickable, IDoubleClickable, ILocationInfoProvider, ISupportSendKeys, ISupportDragAndDrop, IEnabledProvider, IVisibleProvider, ITestObject, ITestObjectDescriber

Properties

ColumnCount

The number of columns in the table.

Declaration
int ColumnCount { get; }
Property Value
Type Description
int

RowCount

The number of rows in the table.

Declaration
int RowCount { get; }
Property Value
Type Description
int

Rows

Returns the ITableRow objects.

Declaration
ReadOnlyCollection<ITableRow> Rows { get; }
Property Value
Type Description
ReadOnlyCollection<ITableRow>

Methods

ActivateCell(int, int)

Double-clicks a cell by row and column indexes.

Declaration
void ActivateCell(int row, int column)
Parameters
Type Name Description
int row

0-based row number.

int column

0-based column index.

ActivateCell(int, string)

Double-clicks a cell by row index and column header.

Declaration
void ActivateCell(int row, string columnHeader)
Parameters
Type Name Description
int row

0-based row number.

string columnHeader

The column header.

EvaluateExpression(string, uint)

EvaluateExpression uses the PowerBuilder Describe method to evaluate one expression involving values of a particular row and column.

Declaration
string EvaluateExpression(string expression, uint row)
Parameters
Type Name Description
string expression

The expression you want to evaluate. In this expression, include a specification of the relevant column.

uint row

The number of the row for which you want to evaluate the expression.

Returns
Type Description
string

The result of evaluating the expression. In the example below, EvaluateExpression returns a string with the value of 1 or 0 depending on the value of the field1 column and row 2.

Remarks

The EvaluateExpression throws GeneralReplayException for an invalid expression.

Examples

pbTable.EvaluateExpression("If(field1 > 10, 1, 0)", 2);

How to use PowerBuilder Describe method to evaluate an expression: http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc37783.1252/html/dwref/BFCEADCH.htm

GetCell(int, string)

Returns a cell specified by row index and column header.

Declaration
ITableCell GetCell(int row, string columnHeader)
Parameters
Type Name Description
int row

0-based row number.

string columnHeader

The column header.

Returns
Type Description
ITableCell

GetTableProperty(string)

GetTableProperty uses the PowerBuilder Describe method to return the value of one property of a DataWindow object and controls within the DataWindow object. Each column and graphic control in the DataWindow has a set of properties. You specify one property as a string, and GetTableProperty returns the values of the property.

Declaration
string GetTableProperty(string property)
Parameters
Type Name Description
string property

Property name. Possible values: http://infocenter.sybase.com/help/topic/com.sybase.infocenter.dc37783.1252/html/dwref/CCJBHCCF.htm

Returns
Type Description
string

A string that includes the value of property. Null if the specified property has no value.

Remarks

The GetTableProperty throws GeneralReplayException for invalid items.

Examples

pbTable.GetTableProperty("DataWindow.Column.Count");

How to use PowerBuilder Describe method: http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc37783.1252/html/dwref/BFCEADCH.htm

SelectCell(int, int)

Clicks a cell by row and column indexes.

Declaration
void SelectCell(int row, int column)
Parameters
Type Name Description
int row

0-based row number.

int column

0-based column index.

SelectCell(int, string)

Clicks a cell by row index and column header.

Declaration
void SelectCell(int row, string columnHeader)
Parameters
Type Name Description
int row

0-based row number.

string columnHeader

The column header.

SelectRow(ITableRow)

Selects rows by ITableRow.

Declaration
void SelectRow(ITableRow row)
Parameters
Type Name Description
ITableRow row

The ITableRow objects

SelectRow(int)

Selects row by index.

Declaration
void SelectRow(int row)
Parameters
Type Name Description
int row

0-based indexes.

Extension Methods

TestObjectExtensions.WaitUntilEnabled<T>(T)
TestObjectExtensions.WaitUntilEnabled<T>(T, int)
TestObjectExtensions.WaitUntilExists<T>(T)
TestObjectExtensions.WaitUntilExists<T>(T, int)
TestObjectExtensions.WaitUntilVisible<T>(T)
TestObjectExtensions.WaitUntilVisible<T>(T, int)
TestObjectExtensions.WaitUntil<T>(T, Func<T, bool>)
TestObjectExtensions.WaitUntil<T>(T, Func<T, bool>, int)