Interface IListViewItem
A single list item in a standard Windows list-view object.
Inherited Members
Namespace: HP.LFT.SDK.StdWin
Assembly: HP.LFT.SDK.dll
Syntax
public interface IListViewItem : ISupportDragAndDrop
Properties
IsFocused
Indicates whether the list item is in focus in a multiple selection list box.
Declaration
bool IsFocused { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsSelected
Indicates whether the list item is selected.
Declaration
bool IsSelected { get; }
Property Value
| Type | Description |
|---|---|
| bool |
State
The list item's state image index.
Declaration
int State { get; }
Property Value
| Type | Description |
|---|---|
| int |
Text
The text value of the list item, or "" when empty.
Declaration
string Text { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
ClickState()
Clicks the state image icon.
Declaration
void ClickState()
DoubleClickState()
Double-clicks state image icon.
Declaration
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.Declaration
void EnableLabelEditing()
GetSubItemText(int)
Returns the text value of the specified report-style (LVS_REPORT) list-view subitem.
Declaration
string GetSubItemText(int columnIndex = 0)
Parameters
| Type | Name | Description |
|---|---|---|
| int | columnIndex | 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
| Type | Description |
|---|---|
| string |
GetSubItemText(string)
Returns the text value of the specified report-style (LVS_REPORT) list-view subitem.
Declaration
string GetSubItemText(string columnName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | columnName | The name of the list-view subitem you want to retrieve. |
Returns
| Type | Description |
|---|---|
| string |
SetItemState(int)
Sets the state of the check box icon of the specified item in the list.
Declaration
void SetItemState(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | The 0-based state image index |