System.Windows.Forms.ListViewItemStates Enumeration

Defines constants that represent the possible states of a System.Windows.Forms.ListViewItem.

Syntax

[System.Flags]
public enum ListViewItemStates

Remarks

This enumeration is used by the DrawListViewItemEventArgs.State and DrawListViewSubItemEventArgs.ItemState properties. For more information, see the ListView.DrawItem and ListView.DrawSubItem events.

Members

Member NameDescription
Checked

The item is checked.

Default

The item is in its default state.

Focused

The item has focus.

Grayed

The item is disabled.

Hot

The item is currently under the mouse pointer.

Indeterminate

The item is in an indeterminate state.

Marked

The item is marked.

Selected

The item is selected.

ShowKeyboardCues

The item should indicate a keyboard shortcut.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0