Table of Contents

Interface IListViewItem

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

Namespace: HP.LFT.SDK.WinForms
Assembly: HP.LFT.SDK.dll
Syntax
public interface IListViewItem : ISupportDragAndDrop

Properties

IsFocused

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

Declaration
bool IsFocused { get; }
Property Value
Type Description
bool

IsSelected

Indicates whether this list item is selected.

Declaration
bool IsSelected { get; }
Property Value
Type Description
bool

State

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

Declaration
int State { get; }
Property Value
Type Description
int

Text

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

Declaration
string Text { get; }
Property Value
Type Description
string

Methods

ClickState()

Clicks the state icon.

Declaration
void ClickState()

DoubleClickState()

Double-clicks state icon.

Declaration
void DoubleClickState()

EnableLabelEditing()

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

Declaration
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.

Declaration
string GetSubItemText(int columnIndex = 0)
Parameters
Type Name Description
int columnIndex

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

Returns
Type Description
string

GetSubItemText(string)

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

Declaration
string GetSubItemText(string columnName)
Parameters
Type Name Description
string columnName

The name of the sub-item .

Returns
Type Description
string

SetItemState(int)

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

Declaration
void SetItemState(int index)
Parameters
Type Name Description
int index

The state index.