ItemCheckEventArgs

ItemCheckEventArgs

System. Windows .Forms (system. windows .forms.dll) class

This class is used by the ListView and the CheckedListBox to encapsulate the data for the ItemCheck event, which is raised when one of the items is about to be checked or unchecked.

Note that it occurs before the item is checked. You can retrieve the Index of the item to be changed, and the CurrentValue . You can also get or set the NewValue to which it will be changed, perhaps changing it if the circumstances demand.

 public class  ItemCheckEventArgs  : EventArgs {  // Public Constructors  public  ItemCheckEventArgs  (int  index  , CheckState  newCheckValue  , CheckState  currentValue  );  // Public Instance Properties  public CheckState  CurrentValue  {get; }    public int  Index  {get; }    public CheckState  NewValue  {set; get; } } 

Hierarchy

System.Object System.EventArgs ItemCheckEventArgs

Passed To

CheckedListBox.OnItemCheck() , ItemCheckEventHandler.{BeginInvoke() , Invoke()} , ListView.OnItemCheck()



. Net Windows Forms in a Nutshell
.NET Windows Forms in a Nutshell
ISBN: 0596003382
EAN: 2147483647
Year: 2002
Pages: 794

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net