IListBase<T> Interface
Base interface for PowerBuilder list objects.
C# Syntax
public interface IListBase<T> 
Public Properties
  Name Description
Property Items

The collection of items in the list as a read-only collection object.  

C# Syntax

ReadOnlyCollection<T> Items {get;}
Property 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
Method 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
Method 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
Method 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
Method Deselect(T[])

Deselects a list of items according to a generic list.  

C# Syntax

void Deselect( 
   params T[] items
)

Parameters

items
The specified item array to deselect from the list.
Method Deselect(String[])

Deselects a list of items by item text.  

C# Syntax

void Deselect( 
   params string[] items
)

Parameters

items
The specified item string array to deselect from the list.
Method Deselect(Int32[])

Deselects a list of items by item indices.  

C# Syntax

void Deselect( 
   params int[] itemIndices
)

Parameters

itemIndices
The specified item indices array to deselect from the list.
Method 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
An array of items to add to the selection.
Method 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
An array of indices of the items to add to the selection.
Method 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
An array of names of the items to add to the selection.
Method GetItem

Returns an item with the given text.  

C# Syntax

T GetItem( 
   string text
)

Parameters

text
The text of the specified item.
Method Select(T[])

Selects a list of items according to a generic list.  

C# Syntax

void Select( 
   params T[] items
)

Parameters

items
The specified item array to select from the list.
Method Select(String[])

Selects a list of items.  

C# Syntax

void Select( 
   params string[] items
)

Parameters

items
The specified item array to select from the list.
Method Select(Int32[])

Selects a list of items by item indices.  

C# Syntax

void Select( 
   params int[] itemIndices
)

Parameters

itemIndices
The specified item indices array to select from the list.
Method 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.
Method 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.
Method 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