Class Overview
Provides operations on windows of WindowClass type SysListView32.
Explanation
Constructor.
Parameter
srcThe original window control.
Explanation
Constructor.
Parameters
app Application manipulation object windowHandle Window handle
public int ItemCount{get;}
Explanation
Returns the number of items in the control.
public int[] SelectedIndices{get;}
Explanation
Returns the currently selected indices.
public int TopIndex{get;}
Explanation
Returns the index of the top item displayed in the list control.
public View View{get;}
Explanation
Returns the display mode.
public void EmulateCancelEdit()
Explanation
Cancels editing.
public void EmulateCancelEdit(Async async)
Explanation
Cancels editing asynchronously.
Parameter
async Asynchronous execution object.
public void EmulateChangeItem(LVITEM item)
Explanation
Parameter
item Item
Explanation
item Item async Asynchronous execution object
Explanation
Parameters
itemIndex Index of the item to change mask State mask state State
Explanation
Parameters
itemIndex Index of the item to change mask State mask state State async Asynchronous execution object
public void EmulateEdit(int itemIndex, string text)
Explanation
Parameters
itemIndex Index of the item to change text Text to set
Explanation
Parameters
itemIndex Index of the item to change text Text to set async Asynchronous execution object
public void EmulateSelect(int itemIndex, bool isSelect)
Explanation
Parameters
itemIndex Index of the item isSelect State to set
Explanation
Parameters
itemIndex Index of the item isSelect State to set async Asynchronous execution object
public void EnsureVisible(int itemIndex, bool partialOK)
Explanation
Displays the indicated item in a visible region.
Return value
Success or failure
Parameters
itemIndex partialOKIndex of the item Indicates whether partial display is permissible
public int FindItem(int findStart, int targetSubItemIndex, string text)
Explanation
Finds an item with the indicated text.
Return value
Parameters
findStart targetSubItemIndexIndex where searching should start. Sub-item index of the target item. text Text to search for
public bool GetColumn(int col, LVCOLUMN column)
Explanation
Obtains column information.
Return value
Success or failure
Parameters
col Column column Column information
Explanation
Obtains an item.
Return value
Success or failure
Parameter
item The item
Explanation
Returns item data
Return value
Item data
Parameter
public Rectangle GetItemRect(int itemIndex, LVIR area)
Explanation
Returns an item's bounds
Return value
Item rectangle
Parameters
itemIndex Index of the item areaSpecifies for which portion bounds should be obtained
Explanation
Obtains an item's state
Return value
Item state
Parameters
itemIndex Index of the item stateMask State mask
public string GetItemText(int itemIndex, int subItemIndex)
Explanation
Gets the text for an item.
Return value
Item text.
Parameters
itemIndex Index of the item subItemIndex Sub-item index
Explanation
Returns the bounds of a subitem.
Return value
Subitem rectangle
Parameters
itemIndex Index of the item subItemIndex Sub-item index areaSpecifies for which portion bounds should be obtained JR |