Click or drag to resize

ListView Class

X#
Create a list view control. Important - Microsoft Note - Under visual styles GridLines are not always displayed correctly.
Inheritance Hierarchy
Object
  VObject
    Control
      TextControl
        ListView
          DataListView

Namespace:  VO
Assembly:  VOGUIClasses (in VOGUIClasses.dll) Version: 2.24 GA
Syntax
 CLASS ListView INHERIT TextControl
Request Example View Source

The ListView type exposes the following members.

Constructors
  NameDescription
Public methodListView
Construct a list view.
Top
Properties
  NameDescription
Public propertyBackgroundColor
A Color object used to paint the background in the list view.
Public propertyCheckBoxes
A logical value determining whether check boxes are used in the list view.
Public propertyColumnCount
A numeric value representing the number of columns in the list view.
Public propertyColumnOrderArray
An array of ListViewColumn object symbolic names representing the order of the columns in the list view.
Public propertyCurrentView
A symbolic name representing the current view of the list view.
Public propertyDragDropEnabled
A logical value that is TRUE if drag and drop is enabled for the list view. If drag and drop is enabled, items can be dragged within, as well as outside, the control.
Public propertyDragImageList
An image list containing a single image displayed during a drag and drop operation for the list view.
Public propertyFullRowSelect
A logical value determining whether the entire row is highlighted when a list view item is selected.
Public propertyGridLines
A logical value determining whether gridlines are shown in the list view.
Public propertyHeaderDragDrop
A logical value determining whether columns can be rearranged in the list view by dragging and dropping the column headers.
Public propertyIsGroupViewEnabled
A logical value to identify if ListView groups are enabled.
Public propertyItemCount
A numeric value representing the number of items in the list view.
Public propertyItemsPerPage
A numeric value representing the number of items that can fit vertically in the visible area of the list view.
Public propertyCode exampleLargeImageList
An image list containing large images to display for each item when the list view is displayed in icon view.
Public propertySearchString
The incremental search string associated with the list view.
Public propertySelectedCount
A numeric value representing the number of items that are selected in the list view.
Public propertyCode exampleSmallImageList
An image list containing small images to display for each item when the list view is displayed in list view, report view, or small icon view. The icons in this list must be defined elsewhere in
Public propertyStateImageList
An image list containing state images to display for each item in the list view.
Public propertyTextBackgroundColor
A Color object used to paint the text background in the list view.
Public propertyTextColor
A Color object used to paint the text in the list view.
(Overrides TextColor.)
Public propertyTopItem
A numeric value representing the index of the topmost visible item when the list view is in list view or report view.
Public propertyViewBoundingBox
The bounding box that encloses all of a list view's items when in icon view or small icon view.
Public propertyViewOrigin
The Point object representing the current view origin of a list view when in icon view or small icon view.
Top
Methods
  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
Remarks
A list view is a control that displays a collection of list view items, each item consisting of images and a text label. List views provide several ways of arranging items and displaying individual items.
See Also

Reference