Skip to content

ListView Control Members

See Also

See Also

Suite Pro Controls ActiveX Control v24.0

ListView Control Members

Public Methods

Method Description
Public MethodAboutBox Displays the about box for the control.
Public MethodEnableExplorerStyle When using Windows Vista or Windows 7, specifies that the control will use the Win7/Vista explorer style.
Public MethodFindItem Finds and returns a reference to a ListViewItem object in a ListView control.
Public MethodGetFirstVisible Returns a reference to the first ListViewItem object visible in the internal area of a ListView control.
Public MethodGetNextSelectedItem Gets the index of the next selected ListViewItem in relation to FirstItem.
Public MethodHitTest Returns a reference to the ListViewItem object located at the coordinates of x and y.
Public MethodOLEDrag Causes a component to initiate an OLE drag/drop operation.
Public MethodSetIconSize The SetIconSize method is used to set the icon size of the node items.
Public MethodStartLabelEdit Enables a user to edit a label.

Public Properties

Property Description
Public PropertyAllowColumnReorder Gets or sets a value indicating whether the user can drag column headers to reorder columns in the control.
Public PropertyAppearance Gets or sets the paint style of the control.
Public PropertyArrange Determines how the icons in the ListView control's Icon or SmallIcon view are arranged.
Public PropertyBackColor Gets or sets the background color.
Public PropertyCheckboxes Gets or sets a value indicating whether a check box appears next to each item in the control.
Public PropertyColumnHeaderIcons Gets or sets the icons to be used for ListViewItems in the ListView control.
Public PropertyColumnHeaders Gets the collection of all column headers that appear in the control.
Public PropertyControlToolTip Gets or sets the tool tip that is displayed when the mouse cursor is positioned over this item.
Public PropertyDropHighlight Gets or sets the ListViewItem object that is highlighted with the system highlight color when the cursor moves over it.
Public PropertyEnabled Gets or sets a value indicating whether the control can respond to user interaction.
Public PropertyEnableMarqueeSelection Enables or disables Marquee selection of rows.
Public PropertyFlatScrollBar Gets or sets whether a flat scrollbar is used.
Public PropertyFont Gets or sets the font of the text displayed by the control.
Public PropertyForeColor Gets or sets the foreground color.
Public PropertyFullRowSelect Gets or sets a value indicating whether clicking an item selects all its subitems.
Public PropertyGridLines Gets or sets a value indicating whether grid lines appear between the rows and columns containing the items and subitems in the control.
Public PropertyHideColumnHeaders Returns or sets whether ColumnHeader objects in a ListView control are hidden in Report view.
Public PropertyHideSelection Gets or sets a value indicating whether the selected item in the control remains highlighted when the control loses focus.
Public PropertyHotTracking Gets or sets a value indicating whether the text of an item or subitem has the appearance of a hyperlink when the mouse pointer passes over it.
Public PropertyHoverSelection Gets or sets a value indicating whether an item is automatically selected when the mouse pointer remains over the item for a few seconds.
Public PropertyhWnd Gets the window handle that the control is bound to.
Public PropertyIcons Gets or sets the icons to be used for ListViewItems in the ListView control.
Public PropertyIconSize Gets or sets the size of icons displayed for ListViewItem objects.
Public PropertyLabelEdit Gets or sets a value indicating whether the user can edit the labels of items in the control.
Public PropertyLabelWrap Returns or sets a value that determines whether or not labels are wrapped when a ListView control is in Icon view.
Public PropertyListItems Returns a reference to a collection of ListViewItem objects in a ListView control.
Public PropertyLockRedraw The LockRedraw property is used to lock or unlock ListView re-drawing.
Public PropertyMultiSelect Gets a value indicating whether multiple items can be selected.
Public PropertyOLEDragMode Returns or sets whether the component or the programmer handles an OLE drag/drop operation.
Public PropertyOLEDropMode Returns or sets how a target component handles drop operations.
Public PropertyReCreateReparented
Public PropertyRightToLeft Gets or sets a value indicating whether control's elements are aligned to support locales using right-to-left fonts.
Public PropertySelectedCount Gets the number of currently selected items.
Public PropertySelectedItem Returns a reference to a selected ListViewItem object.
Public PropertyShowBorder Specifies whether to display a border around the edge of the control.
Public PropertyShowSortArrow Specifies whether to show a sort arrow in the list view header.
Public PropertySorted Returns or sets a value that determines whether the ListViewItem objects in a ListView control are sorted.
Public PropertySortKey Returns or sets a value that determines how the ListViewItem objects in a ListView control are sorted.
Public PropertySortOrder Returns or sets a value that determines whether the ListViewItem objects in a ListView control are sorted in ascending or descending order.
Public PropertyToolTipContext The ToolTipContext object represents the tool tip window that is used to display tool tips.
Public PropertyUpdateBackColorOnAppearanceChange
Public PropertyUpdateForeColorOnAppearanceChange
Public PropertyUseVisualStyle Determines if the control is drawn using visual styles/SkinFramework, if supported.
Public PropertyView Gets or sets how items are displayed in the control.

Events

Event Description
Public EventAfterLabelEdit Occurs when the label for an item is edited by the user.
Public EventBeforeLabelEdit Occurs when the user starts editing the label of an item.
Public EventColumnClick Occurs when the user clicks a column header within the list view control.
Public EventDblClick Occurs when a ListViewItem in the ListView control is double-clicked.
Public EventItemCheck Occurs when the check state of an item changes.
Public EventItemClick Occurs when a ListViewItem object in a ListView control is clicked.
Public EventKeyDown Occurs when a key is pressed while the control has focus.
Public EventKeyPress Occurs when a key is pressed while the control has focus.
Public EventKeyUp Occurs when a key is released while the control has focus.
Public EventMouseDown Occurs when the mouse pointer is over the control and a mouse button is pressed.
Public EventMouseMove Occurs when the mouse pointer is moved over the control.
Public EventMouseUp Occurs when the mouse pointer is over the control and a mouse button is released.
Public EventOLECompleteDrag Occurs when a source component is dropped onto a target component, informing the source component that a drag action was either performed or canceled.
Public EventOLEDragDrop Occurs when a source component is dropped onto a target component when the source component determines that a drop can occur.
Public EventOLEDragOver Occurs when one component is dragged over another.
Public EventOLEGiveFeedback Occurs after every OLEDragOver event. OLEGiveFeedback allows the source control to provide visual feedback to the user.
Public EventOLESetData Occurs on a source component when a target component performs the GetData method on the source’s DataObject object.
Public EventOLEStartDrag Occurs when a component's OLEDrag method is performed, or when a component initiates an OLE drag/drop operation when the OLEDragMode property is set to Automatic.

See Also


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.