Table of Contents

Interface IListViewItem

Namespace
HP.LFT.SDK.WinForms
Assembly
HP.LFT.SDK.dll

A single list item belonging to a .NET Window Forms list view.

public interface IListViewItem : ISupportDragAndDrop
Inherited Members

Properties

IsFocused

Indicates whether this list item has the focus in a multiple-selection list box.

bool IsFocused { get; }

Property Value

bool

IsSelected

Indicates whether this list item is selected.

bool IsSelected { get; }

Property Value

bool

State

This list-view control item's state image index.

int State { get; }

Property Value

int

Text

The text of this list item. Returns an empty string if this list item does not contain any text.

string Text { get; }

Property Value

string

Methods

ClickState()

Clicks the state icon.

void ClickState()

DoubleClickState()

Double-clicks state icon.

void DoubleClickState()

EnableLabelEditing()

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

void EnableLabelEditing()

Remarks

This method only enables renaming. To rename the item, set the value using the IEditField or IEditor test object, together with an applicable method.

GetSubItemText(int)

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

string GetSubItemText(int columnIndex = 0)

Parameters

columnIndex int

Optional: The 0-based index of the sub-item. Default is 0.

Returns

string

GetSubItemText(string)

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

string GetSubItemText(string columnName)

Parameters

columnName string

The name of the sub-item .

Returns

string

SetItemState(int)

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

void SetItemState(int index)

Parameters

index int

The state index.