Interface IComboBox
A combo box in a SAP GUI for Windows application.
Inherited Members
Namespace: HP.LFT.SDK.SAP.GUI
Assembly: HP.LFT.SDK.dll
Syntax
public interface IComboBox : IElement, ITestObject, ITestObjectDescriber, ILocationInfoProvider, ISupportsNativeObject, IEnabledProvider
Properties
AttachedText
The static text attached to the combo box.
Declaration
string AttachedText { get; }
Property Value
| Type | Description |
|---|---|
| string |
Items
The list of the items in the combo box.
Declaration
ReadOnlyCollection<IComboBoxItem> Items { get; }
Property Value
| Type | Description |
|---|---|
| ReadOnlyCollection<IComboBoxItem> |
SelectedItem
The selected item.
Declaration
IComboBoxItem SelectedItem { get; }
Property Value
| Type | Description |
|---|---|
| IComboBoxItem |
Methods
GetItem(string)
Returns the item specified by the item text.
Declaration
IComboBoxItem GetItem(string item)
Parameters
| Type | Name | Description |
|---|---|---|
| string | item | The text of the item. |
Returns
| Type | Description |
|---|---|
| IComboBoxItem | the specific item. |
Select(IComboBoxItem)
Selects the item object from the combo box list.
Declaration
void Select(IComboBoxItem item)
Parameters
| Type | Name | Description |
|---|---|---|
| IComboBoxItem | item | The item to select. |
Select(string)
Selects the item from the combo box list by name.
Declaration
void Select(string item)
Parameters
| Type | Name | Description |
|---|---|---|
| string | item | The text of the item to select. |
Select(uint)
Selects the item from the combo box list by index.
Declaration
void Select(uint itemIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | itemIndex | The 1-based index of the item to select. |
SelectKey(string)
Selects the SAP shortcut key representing an item in the combo box list.
Declaration
void SelectKey(string item)
Parameters
| Type | Name | Description |
|---|---|---|
| string | item | The SAP shortcut key representing the item to select. |
SetFocus()
Sets focus on the combo box.
Declaration
void SetFocus()