Table of Contents

Interface IList

Namespace
HP.LFT.SDK.WPF
Assembly
HP.LFT.SDK.dll

A .NET WPF list object.

public interface IList : IUiObjectBase, IUiObjectBase, IClickable, IDoubleClickable, ILocationInfoProvider, ISupportSendKeys, ISupportDragAndDrop, IEnabledProvider, IVisibleProvider, ISupportsNativeObject, ITestObject, ITestObjectDescriber
Inherited Members
Extension Methods

Properties

CanSelectMultiple

Indicates whether this list allows more than one child element to be selected at the same time.

bool CanSelectMultiple { get; }

Property Value

bool

HelpText

The help text associated with this object.

string HelpText { get; }

Property Value

string

Items

Returns the list of items in the list object.

ReadOnlyCollection<string> Items { get; }

Property Value

ReadOnlyCollection<string>

Name

The name of this object.

string Name { get; }

Property Value

string

ParentText

The text associated with the parent object of this object.

string ParentText { get; }

Property Value

string

SelectedItems

Returns the list of items that are selected in the list object.

ReadOnlyCollection<string> SelectedItems { get; }

Property Value

ReadOnlyCollection<string>

Methods

Deselect(params int[])

Deselects a list of items.

void Deselect(params int[] indices)

Parameters

indices int[]

The 0-based indices of the items to deselect.

Deselect(params string[])

Deselects a list of items.

void Deselect(params string[] items)

Parameters

items string[]

The items to deselect.

ExtendSelect(params int[])

Selects additional items from the multi-selection list, by index.

void ExtendSelect(params int[] indices)

Parameters

indices int[]

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.

void ExtendSelect(params string[] items)

Parameters

items string[]

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.

void Select(params int[] indices)

Parameters

indices int[]

The 0-based indices of the items to select.

Select(params string[])

Selects a list of items.

void Select(params string[] items)

Parameters

items string[]

The items to select.

SelectRange(int, int)

Selects all list items between (and including) the two specified items.

void SelectRange(int indexFrom, int indexTo)

Parameters

indexFrom int

The 0-based index of the first item in the range.

indexTo int

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.

void SelectRange(string itemFrom, string itemTo)

Parameters

itemFrom string

The name of the first item in the range.

itemTo string

The name of the last item of the range.