IListBase<T> Interface

Base interface for PowerBuilder list objects.

C# Syntax

public interface IListBase<T> 
Public Properties
 NameDescription
PropertyItems

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

C# Syntax

ReadOnlyCollection<T> Items {get;}
PropertySelectedItems

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

C# Syntax

ReadOnlyCollection<T> SelectedItems {get;}  

Top
Public Methods
 NameDescription
MethodActivateItem(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
MethodActivateItem(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
MethodActivateItem(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
MethodDeselect(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.
MethodDeselect(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.
MethodDeselect(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.
MethodExtendSelect(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.
MethodExtendSelect(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.
MethodExtendSelect(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.
MethodGetItem

Returns an item with the given text.  

C# Syntax

T GetItem( 
   string text
)

Parameters

text
The text of the specified item.
MethodSelect(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.
MethodSelect(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.
MethodSelect(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.
MethodSelectRange(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.
MethodSelectRange(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.
MethodSelectRange(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