Interface IListViewItem
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
IsSelected
Indicates whether this list item is selected.
bool IsSelected { get; }
Property Value
State
This list-view control item's state image index.
int State { get; }
Property Value
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
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
columnIndexintOptional: The 0-based index of the sub-item. Default is 0.
Returns
GetSubItemText(string)
Returns the text value of this report-style (LVS_REPORT) list-view subitem.
string GetSubItemText(string columnName)
Parameters
columnNamestringThe name of the sub-item .
Returns
SetItemState(int)
Sets the state of the check box icon of the specified item in this list.
void SetItemState(int index)
Parameters
indexintThe state index.