Table of Contents

Interface IListViewItem

Namespace
HP.LFT.SDK.StdWin
Assembly
HP.LFT.SDK.dll

A single list item in a standard Windows list-view object.

public interface IListViewItem : ISupportDragAndDrop
Inherited Members

Properties

IsFocused

Indicates whether the list item is in focus in a multiple selection list box.

bool IsFocused { get; }

Property Value

bool

IsSelected

Indicates whether the list item is selected.

bool IsSelected { get; }

Property Value

bool

State

The list item's state image index.

int State { get; }

Property Value

int

Text

The text value of the list item, or "" when empty.

string Text { get; }

Property Value

string

Methods

ClickState()

Clicks the state image icon.

void ClickState()

DoubleClickState()

Double-clicks state image icon.

void DoubleClickState()

EnableLabelEditing()

Activates the edit mode for the lists item label to enable renaming.

IMPORTANT: This method only enables the item for renaming. To actually rename the item, set its value using IEditor or IEditField test object, together with an applicable method.
void EnableLabelEditing()

GetSubItemText(int)

Returns the text value of the specified report-style (LVS_REPORT) list-view subitem.

string GetSubItemText(int columnIndex = 0)

Parameters

columnIndex int

Optional. The 0-based numeric index of the list-view subitem you want to retrieve.

If no value is specified, the first sub-item (columnIndex = 0) is used.

Returns

string

GetSubItemText(string)

Returns the text value of the specified report-style (LVS_REPORT) list-view subitem.

string GetSubItemText(string columnName)

Parameters

columnName string

The name of the list-view subitem you want to retrieve.

Returns

string

SetItemState(int)

Sets the state of the check box icon of the specified item in the list.

void SetItemState(int index)

Parameters

index int

The 0-based state image index