System.Windows.Forms.ListViewItem.Checked Property

Gets or sets a value indicating whether the item is checked.

Syntax

[System.ComponentModel.RefreshProperties(System.ComponentModel.RefreshProperties.Repaint)]
[System.ComponentModel.DefaultValue(false)]
public bool Checked { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

This property is useful only if the ListView.CheckBoxes property of the System.Windows.Forms.ListView control the item is contained in is set to true. You can use this property to determine if the item has been checked by the user or through code at run time. To determine all the items that are checked in a System.Windows.Forms.ListView control, you can use the ListView.CheckedItems property. To take action when an item has been checked, you can create an event handler for the ListView.ItemCheck property of the System.Windows.Forms.ListView control.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0