IListViewItem Interface
A single list item in a PowerBulder list-view object.

C# Syntax

public interface IListViewItem : HP.LFT.SDK.ISupportDragAndDrop  
Public Properties
 NameDescription
PropertyIsFocused

Indicates whether the list item is in focus in a multiple selection list box.

C# Syntax

bool IsFocused {get;}
PropertyIsSelected

Indicates whether the list item is selected.  

C# Syntax

bool IsSelected {get;}
PropertyState

The list item's state image index.  

C# Syntax

int State {get;}
PropertyText

The text value of the list item, or "" when empty.  

C# Syntax

string Text {get;}
Top
Public Methods
 NameDescription
MethodClickState

Clicks the state image icon.  

C# Syntax

void ClickState()
MethodDoubleClickState

Double-clicks state image icon.  

C# Syntax

void DoubleClickState()
MethodDragAndDropOnDrags and drops a test object to the specified target object. (Inherited from HP.LFT.SDK.ISupportDragAndDrop)
MethodEnableLabelEditingActivates 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.  

C# Syntax

void EnableLabelEditing()
MethodGetSubItemText(Int32)

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

C# Syntax

string GetSubItemText( 
   int columnIndex
)

Parameters

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.

 GetSubItemText(String)

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

C# Syntax

string GetSubItemText( 
   string columnName
)

Parameters

columnName
The name of the list-view subitem you want to retrieve.
MethodSetItemState

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

C# Syntax

void SetItemState( 
   int index
)

Parameters

index
The 0-based state image index
Top