Interface IList
A .NET WPF list object.
Inherited Members
Namespace: HP.LFT.SDK.WPF
Assembly: HP.LFT.SDK.dll
Syntax
public interface IList : IUiObjectBase, IUiObjectBase, IClickable, IDoubleClickable, ILocationInfoProvider, ISupportSendKeys, ISupportDragAndDrop, IEnabledProvider, IVisibleProvider, ISupportsNativeObject, ITestObject, ITestObjectDescriber
Properties
CanSelectMultiple
Indicates whether this list allows more than one child element to be selected at the same time.
Declaration
bool CanSelectMultiple { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HelpText
The help text associated with this object.
Declaration
string HelpText { get; }
Property Value
| Type | Description |
|---|---|
| string |
Items
Returns the list of items in the list object.
Declaration
ReadOnlyCollection<string> Items { get; }
Property Value
| Type | Description |
|---|---|
| ReadOnlyCollection<string> |
Name
The name of this object.
Declaration
string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |
ParentText
The text associated with the parent object of this object.
Declaration
string ParentText { get; }
Property Value
| Type | Description |
|---|---|
| string |
SelectedItems
Returns the list of items that are selected in the list object.
Declaration
ReadOnlyCollection<string> SelectedItems { get; }
Property Value
| Type | Description |
|---|---|
| ReadOnlyCollection<string> |
Methods
Deselect(params int[])
Deselects a list of items.
Declaration
void Deselect(params int[] indices)
Parameters
| Type | Name | Description |
|---|---|---|
| int[] | indices | The 0-based indices of the items to deselect. |
Deselect(params string[])
Deselects a list of items.
Declaration
void Deselect(params string[] items)
Parameters
| Type | Name | Description |
|---|---|---|
| string[] | items | The items to deselect. |
ExtendSelect(params int[])
Selects additional items from the multi-selection list, by index.
Declaration
void ExtendSelect(params int[] indices)
Parameters
| Type | Name | Description |
|---|---|---|
| int[] | indices | The 0-based 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, by name.
Declaration
void ExtendSelect(params string[] items)
Parameters
| Type | Name | Description |
|---|---|---|
| string[] | items | The names of the items to add to the selection. |
Remarks
This method is applicable only to lists that allow multiple selection.
Select(params int[])
Selects a list of items.
Declaration
void Select(params int[] indices)
Parameters
| Type | Name | Description |
|---|---|---|
| int[] | indices | The 0-based indices of the items to select. |
Select(params string[])
Selects a list of items.
Declaration
void Select(params string[] items)
Parameters
| Type | Name | Description |
|---|---|---|
| string[] | items | The items to select. |
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 of the range. |
SelectRange(string, string)
Selects all list items between (and including) the two specified items.
Declaration
void SelectRange(string itemFrom, string itemTo)
Parameters
| Type | Name | Description |
|---|---|---|
| string | itemFrom | The name of the first item in the range. |
| string | itemTo | The name of the last item of the range. |