Interface IListBase<T>
Base interface for standard Windows list objects.
Namespace: HP.LFT.SDK.StdWin
Assembly: HP.LFT.SDK.dll
Syntax
public interface IListBase<T>
Type Parameters
| Name | Description |
|---|---|
| T |
Properties
Items
The collection of items in the list as a read-only collection object.
Declaration
ReadOnlyCollection<T> Items { get; }
Property Value
| Type | Description |
|---|---|
| ReadOnlyCollection<T> |
SelectedItems
The collection of all selected items in the list as a read-only collection object.
Declaration
ReadOnlyCollection<T> SelectedItems { get; }
Property Value
| Type | Description |
|---|---|
| ReadOnlyCollection<T> |
Methods
ActivateItem(int, MouseButton)
Activates (double-clicks) the specified item in the list by item index.
Declaration
void ActivateItem(int itemIndex, MouseButton button = MouseButton.Left)
Parameters
| Type | Name | Description |
|---|---|---|
| int | itemIndex | The item index to activate. |
| MouseButton | button | Optional. The mouse button used to select the list item. Possible values: MouseButton Default value: MouseButton.Left |
ActivateItem(string, MouseButton)
Activates (double-clicks) the specified item in the list by item text.
Declaration
void ActivateItem(string item, MouseButton button = MouseButton.Left)
Parameters
| Type | Name | Description |
|---|---|---|
| string | item | The specified item to activate from the list. |
| MouseButton | button | Optional. The mouse button used to select the list item. Possible values: MouseButton Default value: MouseButton.Left |
ActivateItem(T, MouseButton)
Activates (double-clicks) the specified generic item in the list.
Declaration
void ActivateItem(T item, MouseButton button = MouseButton.Left)
Parameters
| Type | Name | Description |
|---|---|---|
| T | item | The specified item to activate from the list. |
| MouseButton | button | Optional. The mouse button used to select the list item. Possible values: MouseButton Default value: MouseButton.Left |
Deselect(params int[])
Deselects a list of items by item indices.
Declaration
void Deselect(params int[] itemIndices)
Parameters
| Type | Name | Description |
|---|---|---|
| int[] | itemIndices | The item indices to deselect from the list. |
Deselect(params string[])
Deselects a list of items by item text.
Declaration
void Deselect(params string[] items)
Parameters
| Type | Name | Description |
|---|---|---|
| string[] | items | The item names to deselect from the list. |
Deselect(params T[])
Deselects a list of items according to a generic list.
Declaration
void Deselect(params T[] items)
Parameters
| Type | Name | Description |
|---|---|---|
| T[] | items | The items to deselect from the list. |
ExtendSelect(params int[])
Selects additional items from the multi-selection list.
Declaration
void ExtendSelect(params int[] itemIndices)
Parameters
| Type | Name | Description |
|---|---|---|
| int[] | itemIndices | The indices of the items to add to the selection. |
Remarks
This method is applicable only to lists that allow multiple selection.
ExtendSelect(params string[])
Selects additional items from the multi-selection list.
Declaration
void ExtendSelect(params string[] itemNames)
Parameters
| Type | Name | Description |
|---|---|---|
| string[] | itemNames | The of names of the items to add to the selection. |
Remarks
This method is applicable only to lists that allow multiple selection.
ExtendSelect(params T[])
Selects additional items from the multi-selection list.
Declaration
void ExtendSelect(params T[] items)
Parameters
| Type | Name | Description |
|---|---|---|
| T[] | items | The items to add to the selection. |
Remarks
This method is applicable only to lists that allow multiple selection.
GetItem(string)
Returns an item with the given text.
Declaration
T GetItem(string text)
Parameters
| Type | Name | Description |
|---|---|---|
| string | text | The text of the specified item. |
Returns
| Type | Description |
|---|---|
| T |
Select(params int[])
Selects a list of items by item indices.
Declaration
void Select(params int[] itemIndices)
Parameters
| Type | Name | Description |
|---|---|---|
| int[] | itemIndices | The item indices to select from the list. |
Select(params string[])
Selects a list of items.
Declaration
void Select(params string[] items)
Parameters
| Type | Name | Description |
|---|---|---|
| string[] | items | The item names to select from the list. |
Select(params T[])
Selects a list of items according to a generic list.
Declaration
void Select(params T[] items)
Parameters
| Type | Name | Description |
|---|---|---|
| T[] | items | The items to select from the list. |
SelectRange(int)
Selects all list items between the currently selected item and the item whose index is specified.
Declaration
void SelectRange(int indexTo)
Parameters
| Type | Name | Description |
|---|---|---|
| int | indexTo | The 0-based index of the last item to select. |
Remarks
This method is applicable only to lists that allow multiple selection.
SelectRange(int, int)
Selects all list items between (and including) the two specified items.
Declaration
void SelectRange(int indexFrom, int indexTo)
Parameters
| Type | Name | Description |
|---|---|---|
| int | indexFrom | The 0-based index of the first item in the range. |
| int | indexTo | The 0-based index of the last item in the range. |
Remarks
This method is applicable only to lists that allow multiple selection.
SelectRange(string)
Selects all list items between the currently selected item and the item whose text is specified.
Declaration
void SelectRange(string itemTo)
Parameters
| Type | Name | Description |
|---|---|---|
| string | itemTo | The text of the last item to select. |
Remarks
This method is applicable only to lists that allow multiple selection.
SelectRange(string, string)
Selects all list items between (and including) the two specified items.
Declaration
void SelectRange(string itemNameFrom, string itemNameTo)
Parameters
| Type | Name | Description |
|---|---|---|
| string | itemNameFrom | The text of the first item in the range. |
| string | itemNameTo | The text of the last item in the range. |
Remarks
This method is applicable only to lists that allow multiple selection.
SelectRange(T)
Selects all list items between the currently selected item and the item passed as the argument.
Declaration
void SelectRange(T itemTo)
Parameters
| Type | Name | Description |
|---|---|---|
| T | itemTo | The last item to select. |
Remarks
This method is applicable only to lists that allow multiple selection.
SelectRange(T, T)
Selects all list items between (and including) the two specified items.
Declaration
void SelectRange(T itemFrom, T itemTo)
Parameters
| Type | Name | Description |
|---|---|---|
| T | itemFrom | The first item in the range. |
| T | itemTo | The last item in the range. |
Remarks
This method is applicable only to lists that allow multiple selection.