Click or drag to resize

ListView Methods

X#

The ListView type exposes the following members.

Functions
  NameDescription
Public methodCode exampleAddColumn
Add a new ListViewColumn object to the end of the list view's list of columns.
Public methodAddGroup
Set an image as the background to the list view.
Public methodCode exampleAddItem
Add a new ListViewItem object as the last item in the list view.
Public methodArrange
Align list view items while in icon view.
Public methodDeleteAll
Delete all items of the list view.
Public methodDeleteAllColumns
Delete all columns from a list view.
Public methodDeleteColumn
Delete a ListViewColumn object from the list view.
Public methodDeleteItem
Delete a ListViewItem object from the list view.
Public methodDestroy
Provide a method to de-instantiate any TextControl.Destroy object.
(Overrides Destroy.)
Public methodEditItemLabel
Begins in-place label editing of an item in the list view.
Public methodEnableDragDrop
Enable or disable drag and drop of items for the list view.
Public methodEnableGroupView
Set Group View on or off in a ListView control.
Public methodEnableSort
Register a user-defined method to use for sorting items in the list view.
Public methodEnsureVisible
Ensure that an item is visible in the list view, scrolling if necessary.
Public methodGetAllItems
Get an array with all the Listview Items
Public methodGetAllSelectedItems
Get an array with all the selected Listview Items
Public methodGetColumn
Return a particular ListViewColumn object.
Public methodGetGroupTextColor
Get the text color used for the headings when displaying a ListView control by group.
Public methodGetItemAtPosition
Return a ListViewItem object at a particular position, if one exists.
Public methodCode exampleGetItemAttributes
Return a ListViewItem object given its item index.
Public methodGetItemBoundingBox
Return the bounding box of a ListViewItem object given its item index.
Public methodGetItemPosition
Return the origin of a ListViewItem object given its item index.
Public methodGetItemSpacing
Return the spacing between list view items in icon view or small icon view.
Public methodCode exampleGetNextItem
Retrieve the next list view item that possesses all of the specified properties.
Public methodGetSelectedItem
Retrieve the currently selected ListViewItem object.
Public methodHasGroup
A logical value to determine if the group with the specified ID exists in a ListView control.
Public methodInsertColumn
Insert a new ListViewColumn object after a particular column index in the list view.
Public methodInsertItem
Insert a new ListViewItem object after a particular item index in the list view.
Public methodRedrawRange
Redraw a range of list view items.
Public methodRemoveAllGroups
Remove all groups from a ListView control.
Public methodRemoveGroup
Remove the group with the specified ID from a ListView control.
Public methodScroll
Scroll the contents of a list view.
Public methodSeek
Search the list view for a particular list view item.
Public methodSelectItem
Select or deselect a specific item in a list view.
Public methodSelectNextItem
Select the next list view item after the currently selected item.
Public methodSetBackgroundImage
Set an image as the background to the list view.
Public methodSetColumnFormat
Set the desired extended style for a list view.
Public methodSetGroupName
Set the name of a list view group.
Public methodSetGroupTextColor
Set the text color to be used for the headings when displaying a ListView control by group.
Public methodCode exampleSetItemAttributes
Update a ListViewItem object with new attributes.
Public methodSetItemGroupId
A logical value to determine if the group with the specified ID exists in a ListView control.
Public methodSetItemPosition
Move a list view item to a new position in icon view or small icon view.
Public methodSetSelectedColumn
Show column as selected.
Public methodSortItems
Sort the list view items using the user-defined sort method specified by EnableSort().
Public methodUpdate
Update a list view item.
Public methodViewAs
Change the current view of the list view.
Top
See Also