Back to Devexpress

ItemCheckingEventArgs.NewValue Property

windowsforms-devexpress-dot-xtraeditors-dot-controls-dot-itemcheckingeventargs-591517fe.md

latest1.9 KB
Original Source

ItemCheckingEventArgs.NewValue Property

Gets or sets a new checked state for the item.

Namespace : DevExpress.XtraEditors.Controls

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public CheckState NewValue { get; set; }
vb
Public Property NewValue As CheckState

Property Value

TypeDescription
CheckState

A CheckState value representing the new checked state for the item.

|

Remarks

The NewValue property returns the new checked state for the item. You can change this property to override the default value. To get the previous checked state, use the ItemCheckingEventArgs.OldValue property.

It is possible to prevent the item’s checked state from being changed. To do this, you can set the Cancel parameter of the BaseCheckedListBoxControl.ItemChecking event to true.

See Also

OldValue

ItemCheckingEventArgs Class

ItemCheckingEventArgs Members

DevExpress.XtraEditors.Controls Namespace