Back to Devexpress

ItemCheckingEventArgs.OldValue Property

windowsforms-devexpress-dot-xtraeditors-dot-controls-dot-itemcheckingeventargs-c80bee5e.md

latest1.9 KB
Original Source

ItemCheckingEventArgs.OldValue Property

Gets the item’s previous checked state.

Namespace : DevExpress.XtraEditors.Controls

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

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

Property Value

TypeDescription
CheckState

A CheckState value representing the previous checked state of the item.

|

Remarks

The OldValue property returns the item’s previous checked state . The new value to be assigned to the item is specified by the ItemCheckingEventArgs.NewValue 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

NewValue

ItemCheckingEventArgs Class

ItemCheckingEventArgs Members

DevExpress.XtraEditors.Controls Namespace