IListViewItem Interface
A single list item in a PowerBulder list-view object.
C# Syntax
public interface IListViewItem : HP.LFT.SDK.ISupportDragAndDrop  
Public Properties
  Name Description
Property IsFocused

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

C# Syntax

bool IsFocused {get;}
Property IsSelected

Indicates whether the list item is selected.  

C# Syntax

bool IsSelected {get;}
Property State

The list item's state image index.  

C# Syntax

int State {get;}
Property Text

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

C# Syntax

string Text {get;}
Top
Public Methods
  Name Description
Method ClickState

Clicks the state image icon.  

C# Syntax

void ClickState()
Method DoubleClickState

Double-clicks state image icon.  

C# Syntax

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

C# Syntax

void EnableLabelEditing()
Method GetSubItemText(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.
Method SetItemState

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