Interface IListViewItem
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
IsSelected
Indicates whether the list item is selected.
bool IsSelected { get; }
Property Value
State
The list item's state image index.
int State { get; }
Property Value
Text
The text value of the list item, or "" when empty.
string Text { get; }
Property Value
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
columnIndexintOptional. 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
GetSubItemText(string)
Returns the text value of the specified report-style (LVS_REPORT) list-view subitem.
string GetSubItemText(string columnName)
Parameters
columnNamestringThe name of the list-view subitem you want to retrieve.
Returns
SetItemState(int)
Sets the state of the check box icon of the specified item in the list.
void SetItemState(int index)
Parameters
indexintThe 0-based state image index