System.Windows.Forms.ItemCheckEventArgs.NewValue Property

Gets or sets a value indicating whether to set the check box for the item to be checked, unchecked, or indeterminate.

Syntax

public CheckState NewValue { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

This property enables you to determine the new check state for the specified item before the check state is changed by the System.Windows.Forms.CheckedListBox control. In addition to determining the new check state, you can use this property in an event handler for the CheckedListBox.ItemCheck event to change the state to a different check state than the one specified. For example, if the user placed a check mark next to an item in the System.Windows.Forms.CheckedListBox that you have determined should not be checked based on the state of your application, you can override the change in the check mark state by setting this property to its previous setting or to a different check state.

Requirements

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