Back to Devexpress

ItemCheckingEventArgs Class

windowsforms-devexpress-dot-xtraeditors-dot-controls-d2beb8c3.md

latest2.9 KB
Original Source

ItemCheckingEventArgs Class

Provides data for the BaseCheckedListBoxControl.ItemChecking event of check list box controls.

Namespace : DevExpress.XtraEditors.Controls

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public class ItemCheckingEventArgs :
    ChangingEventArgs
vb
Public Class ItemCheckingEventArgs
    Inherits ChangingEventArgs

ItemCheckingEventArgs is the data class for the following events:

Remarks

The BaseCheckedListBoxControl.ItemChecking event is fired when the checked state of a check list box’s item is about to be changed. This allows you to prevent the checked state from being changed.

The item affected is referred to by the ItemCheckingEventArgs.Index property. This specifies the index of the item within the BaseCheckedListBoxControl.Items collection.

The old and new checked states for the item are passed as the ItemCheckingEventArgs.OldValue and ItemCheckingEventArgs.NewValue properties. To prevent the modification, you can set the Cancel parameter to true.

Inheritance

Object EventArgs CancelEventArgs ChangingEventArgs ItemCheckingEventArgs

See Also

ItemCheckingEventArgs Members

ItemChecking

DevExpress.XtraEditors.Controls Namespace