IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
IG.Forms.IndexChangeEventArgs Class Reference

Event arguments for events bearing information about an index (of type int) that has changed. More...

+ Inheritance diagram for IG.Forms.IndexChangeEventArgs:
+ Collaboration diagram for IG.Forms.IndexChangeEventArgs:

Public Member Functions

 IndexChangeEventArgs ()
 Constructs event arguments with old and new value unspecified. See ValueChangeEventArgs{ValueType}ValueChangeEventArgs(). More...
 
 IndexChangeEventArgs (int oldValue, int newValue, bool oldValueDefined=true, bool newValueDefined=true)
 Constructs event args with specific old and new value (oldValue and newValue ). More...
 
- Public Member Functions inherited from IG.Forms.ValueChangeEventArgs< ValueType >
 ValueChangeEventArgs ()
 Default constructor, leaves old and new values unspecified. More...
 
 ValueChangeEventArgs (ValueType oldValue, ValueType newValue, bool oldValueDefined=true, bool newValueDefined=true)
 Constructs event args with specific old and new value (oldValue and newValue ). More...
 

Additional Inherited Members

- Properties inherited from IG.Forms.ValueChangeEventArgs< ValueType >
ValueType Old [get, set]
 Old value of the item that has changed. More...
 
bool OldDefined [get, set]
 Indicates whether the old value of the item is defined. More...
 
ValueType New [get, set]
 New value of the item that has changed. More...
 
bool NewDefined [get, set]
 Indicates whether the old value of the item is defined. More...
 

Detailed Description

Event arguments for events bearing information about an index (of type int) that has changed.

Old and new values should normally be set via constructor.

Fields New and Old contain the new and the old value of the item whose value has changed. Either of them can be defined or not, and flags NewDefined and OldDefined specify that.

See also the generic base class, ValueChangeEventArgs{ValueType}.

Constructor & Destructor Documentation

IG.Forms.IndexChangeEventArgs.IndexChangeEventArgs ( )
inline

Constructs event arguments with old and new value unspecified. See ValueChangeEventArgs{ValueType}ValueChangeEventArgs().

public ValueChangeEventArgs() : base() { }

Default constructor, leaves old and new values unspecified.

To specify new and old values in constructor, use ValuChangedEventArgs(double, double) or ValuChangedEventArgs(int old, int new, bool oldDefined, bool newDefined)

See also ValueChangeEventArgs{ValueType}()

IG.Forms.IndexChangeEventArgs.IndexChangeEventArgs ( int  oldValue,
int  newValue,
bool  oldValueDefined = true,
bool  newValueDefined = true 
)
inline

Constructs event args with specific old and new value (oldValue and newValue ).

Optional arguments oldValueDefined and newValueDefined can specify whether the values have actually been defined (default is true, so one can call constructor without these flags, implying that both old and new values are specified).

See also ValueChangeEventArgs{ValueType}().

Parameters
oldValueOld value of the item that has changed.
newValue
oldValueDefined
newValueDefined

The documentation for this class was generated from the following file: