System.Windows.Forms.ListView: Method Members

The methods of System.Windows.Forms.ListView are listed below. For a list of all members, see the ListView Members list.

See Also: Inherited members from System.Windows.Forms.Control

Public Methods

ArrangeIcons()

Arranges items in the control when they are displayed as icons based on the value of the ListView.Alignment property.

ArrangeIcons(ListViewAlignment)

Arranges items in the control when they are displayed as icons with a specified alignment setting.

AutoResizeColumn(int, ColumnHeaderAutoResizeStyle)

Resizes the width of the given column as indicated by the resize style.

AutoResizeColumns(ColumnHeaderAutoResizeStyle)

Resizes the width of the columns as indicated by the resize style.

BeginUpdate()

Prevents the control from drawing until the ListView.EndUpdate method is called.

Clear()

Removes all items and columns from the control.

EndUpdate()

Resumes drawing of the list view control after drawing is suspended by the ListView.BeginUpdate method.

EnsureVisible(int)

Ensures that the specified item is visible within the control, scrolling the contents of the control if necessary.

FindItemWithText(string) : ListViewItem

Finds the first System.Windows.Forms.ListViewItem that begins with the specified text value.

FindItemWithText(string, bool, int) : ListViewItem

Finds the first System.Windows.Forms.ListViewItem or System.Windows.Forms.ListViewItem.ListViewSubItem, if indicated, that begins with the specified text value. The search starts at the specified index.

FindItemWithText(string, bool, int, bool) : ListViewItem

Finds the first System.Windows.Forms.ListViewItem or System.Windows.Forms.ListViewItem.ListViewSubItem, if indicated, that begins with the specified text value. The search starts at the specified index.

FindNearestItem(SearchDirectionHint, System.Drawing.Point) : ListViewItem

Finds the next item from the given point, searching in the specified direction

FindNearestItem(SearchDirectionHint, int, int) : ListViewItem

Finds the next item from the given x- and y-coordinates, searching in the specified direction.

GetItemAt(int, int) : ListViewItem

Retrieves the item at the specified location.

GetItemRect(int) : System.Drawing.Rectangle

Retrieves the bounding rectangle for a specific item within the list view control.

GetItemRect(int, ItemBoundsPortion) : System.Drawing.Rectangle

Retrieves the specified portion of the bounding rectangle for a specific item within the list view control.

HitTest(System.Drawing.Point) : ListViewHitTestInfo

Provides item information, given a point.

HitTest(int, int) : ListViewHitTestInfo

Provides item information, given x- and y-coordinates.

RedrawItems(int, int, bool)

Forces a range of System.Windows.Forms.ListViewItem objects to be redrawn.

Sort()

Sorts the items of the list view.

override
ToString() : string

Returns a string representation of the System.Windows.Forms.ListView control.

Protected Methods

override
CreateHandle()

Creates a handle for the control.

override
Dispose(bool)

Releases the unmanaged resources used by the System.Windows.Forms.ListView and optionally releases the managed resources.

override
IsInputKey(Keys) : bool

Determines whether the specified key is a regular input key or a special key that requires preprocessing.

OnAfterLabelEdit(LabelEditEventArgs)

Raises the ListView.AfterLabelEdit event.

override
OnBackgroundImageChanged(EventArgs)

Raises the Control.BackgroundImageChanged event.

OnBeforeLabelEdit(LabelEditEventArgs)

Raises the ListView.BeforeLabelEdit event.

OnCacheVirtualItems(CacheVirtualItemsEventArgs)

Raises the ListView.CacheVirtualItems event.

OnColumnClick(ColumnClickEventArgs)

Raises the ListView.ColumnClick event.

OnColumnReordered(ColumnReorderedEventArgs)

Raises the ListView.ColumnReordered event.

OnColumnWidthChanged(ColumnWidthChangedEventArgs)

Raises the ListView.ColumnWidthChanged event.

OnColumnWidthChanging(ColumnWidthChangingEventArgs)

Raises the ListView.ColumnWidthChanging event.

OnDrawColumnHeader(DrawListViewColumnHeaderEventArgs)

Raises the ListView.DrawColumnHeader event.

OnDrawItem(DrawListViewItemEventArgs)

Raises the ListView.DrawItem event.

OnDrawSubItem(DrawListViewSubItemEventArgs)

Raises the ListView.DrawSubItem event.

override
OnEnabledChanged(EventArgs)
Documentation for this section has not yet been entered.
override
OnFontChanged(EventArgs)

Raises the FontChanged event.

override
OnHandleCreated(EventArgs)

Raises the Control.HandleCreated event.

override
OnHandleDestroyed(EventArgs)

Raises the Control.HandleDestroyed event.

OnItemActivate(EventArgs)

Raises the ListView.ItemActivate event.

OnItemCheck(ItemCheckEventArgs)

Raises the ListView.ItemCheck event.

OnItemChecked(ItemCheckedEventArgs)

Raises the ListView.ItemChecked event.

OnItemDrag(ItemDragEventArgs)

Raises the ListView.ItemDrag event.

OnItemMouseHover(ListViewItemMouseHoverEventArgs)

Raises the ListView.ItemMouseHover event.

OnItemSelectionChanged(ListViewItemSelectionChangedEventArgs)

Raises the ListView.ItemSelectionChanged event.

override
OnMouseHover(EventArgs)

Raises the Control.MouseHover event.

override
OnMouseLeave(EventArgs)

Raises the Control.MouseLeave event.

override
OnParentChanged(EventArgs)

Raises the Control.ParentChanged event.

override
OnResize(EventArgs)

Raises the Control.Resize event.

OnRetrieveVirtualItem(RetrieveVirtualItemEventArgs)

Raises the ListView.RetrieveVirtualItem event.

OnRightToLeftLayoutChanged(EventArgs)

Raises the ListView.RightToLeftLayoutChanged event.

OnSearchForVirtualItem(SearchForVirtualItemEventArgs)

Raises the ListView.SearchForVirtualItem event.

OnSelectedIndexChanged(EventArgs)

Raises the ListView.SelectedIndexChanged event.

override
OnSystemColorsChanged(EventArgs)

Raises the Control.SystemColorsChanged event.

OnVirtualItemsSelectionRangeChanged(ListViewVirtualItemsSelectionRangeChangedEventArgs)

Raises the ListView.VirtualItemsSelectionRangeChanged event.

RealizeProperties()

Initializes the properties of the System.Windows.Forms.ListView control that manage the appearance of the control.

UpdateExtendedStyles()

Updates the extended styles applied to the list view control.

override
WndProc(ref Message)
Documentation for this section has not yet been entered.