Share this page

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
--- | --- | ---
| IsFocused | Indicates whether the list item is in focus in a multiple selection list box. C# Syntax
    bool IsFocused {get;}
| IsSelected | Indicates whether the list item is selected. C# Syntax
    bool IsSelected {get;}
| State | The list item's state image index. C# Syntax
    int State {get;}
| Text | The text value of the list item, or "" when empty. C# Syntax
    string Text {get;}

Top
Public Methods

| Name | Description
--- | --- | ---
| ClickState | Clicks the state image icon. C# Syntax
    void ClickState()
| DoubleClickState | Double-clicks state image icon. C# Syntax
    void DoubleClickState()
| DragAndDropOn | Drags and drops a test object to the specified target object. (Inherited from HP.LFT.SDK.ISupportDragAndDrop)
| 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()
| 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.
| 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

Tips to improve your search results... UFT Developer .NET SDK Reference Version 15.0-15.0.2 UFT Developer SDK Reference All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic Version: