Share this page

# IListBase<T> Interface

Base interface for PowerBuilder list objects.

C# Syntax

    public interface IListBase<T>

Public Properties

| Name | Description
--- | --- | ---
| Items | The collection of items in the list as a read-only collection object. C# Syntax
    ReadOnlyCollection<T> Items {get;}
| SelectedItems | The collection of all selected items in the list as a read-only collection object. C# Syntax ReadOnlyCollection<T> SelectedItems {get;}

Top
Public Methods

| Name | Description
--- | --- | ---
| ActivateItem(T,MouseButton) | Activates (double-clicks) the specified generic item in the list. C# Syntax
    void ActivateItem(
       T item,
       MouseButton button
    )
Parameters item The specified item to activate from the list. button Optional. The mouse button used to select the list item. Possible values: HP.LFT.SDK.MouseButton Default value: MouseButton.Left
| ActivateItem(String,MouseButton) | Activates (double-clicks) the specified item in the list by item text. C# Syntax
    void ActivateItem(
       string item,
       MouseButton button
    )
Parameters item The specified item to activate from the list. button Optional. The mouse button used to select the list item. Possible values: HP.LFT.SDK.MouseButton Default value: MouseButton.Left
| ActivateItem(Int32,MouseButton) | Activates (double-clicks) the specified item in the list by item index. C# Syntax
    void ActivateItem(
       int itemIndex,
       MouseButton button
    )
Parameters itemIndex The item index to activate. button Optional. The mouse button used to select the list item. Possible values: HP.LFT.SDK.MouseButton Default value: MouseButton.Left
| Deselect(T[]) | Deselects a list of items according to a generic list. C# Syntax
    void Deselect(
       params T[] items
    )
Parameters items The items to deselect from the list.
| Deselect(String[]) | Deselects a list of items by item text. C# Syntax
    void Deselect(
       params string[] items
    )
Parameters items The texts of the items to deselect from the list.
| Deselect(Int32[]) | Deselects a list of items by item indices. C# Syntax
    void Deselect(
       params int[] itemIndices
    )
Parameters itemIndices The indices of the items to deselect from the list.
| ExtendSelect(T[]) | Selects additional items from the multi-selection list. Remarks: This method is applicable only to lists that allow multiple selection. C# Syntax
    void ExtendSelect(
       params T[] items
    )
Parameters items The items to add to the selection.
| ExtendSelect(Int32[]) | Selects additional items from the multi-selection list. Remarks: This method is applicable only to lists that allow multiple selection. C# Syntax
    void ExtendSelect(
       params int[] itemIndices
    )
Parameters itemIndices The indices of the items to add to the selection.
| ExtendSelect(String[]) | Selects additional items from the multi-selection list. Remarks: This method is applicable only to lists that allow multiple selection. C# Syntax
    void ExtendSelect(
       params string[] itemNames
    )
Parameters items The texts of the items to add to the selection.
| GetItem | Returns an item with the given text. C# Syntax
    T GetItem(
       string text
    )
Parameters text The text of the specified item.
| Select(T[]) | Selects a list of items according to a generic list. C# Syntax
    void Select(
       params T[] items
    )
Parameters items The items to select from the list.
| Select(String[]) | Selects a list of items. C# Syntax
    void Select(
       params string[] items
    )
Parameters items The names of the items to select from the list.
| Select(Int32[]) | Selects a list of items by item indices. C# Syntax
    void Select(
       params int[] itemIndices
    )
Parameters itemIndices The indices of the items to select from the list.
| SelectRange(Int32,Int32) | Selects all list items between (and including) the two specified items. C# Syntax
    void SelectRange(
       int indexFrom,
       int indexTo
    )
Parameters indexFrom The 0-based index of the first item in the range. indexTo The 0-based index of the last item in the range.
| SelectRange(Int32) | Selects all list items between an already selected item and the specified item. Remarks: This method is applicable only to lists that allow multiple selection. C# Syntax
    void SelectRange(
       int indexTo
    )
Parameters indexTo The 0-based index of the last item in the range.
| SelectRange(String) | Selects all list items between an already selected item and the specified item. Remarks: This method is applicable only to lists that allow multiple selection. C# Syntax
    void SelectRange(
       int itemTo
    )
Parameters itemTo The text of the last item in the range.

Top

Tips to improve your search results... OpenText™ Functional Testing for Developers .NET SDK Version: 25.2 OpenText™ Functional Testing for Developers SDK 25.2 All View Local Help Center View Online Help Center Version: