The syntax for events may list an event argument typically called e, which uses a type specific to the event shown as EventArgumentType. This type is defined for the event and all event-specific parameters are passed as members of this class.
This class is not defined elsewhere and is created by Visual Studio when the ActiveX control is added to a project and is defined just for use with .NET. Other languages do not make use of these classes and these are not listed in this documentation. The syntax reference uses EventArgumentType as a place-holder for the actual type name.
For the events of the date field control (SftDate) the type is named AxSftDateLib20._ISftDateEvents_NameEvent, where Name is the name of the event. For the events of the month calendar control (SftCalendar) the type is named AxSftDateLib20._ISftCalendarEvents_NameEvent. Events without parameters use System.EventArgs.
| C# | void object_ValueValidating(object sender, EventArgumentType e); | ||
| VB.NET | Private Sub object_ValueValidating(ByVal sender As Object, ByVal e As EventArgumentType) Handles object.ValueValidating |
e.newValue
e.newRangeEnd
e.cancel
The arguments of each event are defined as members of the e object. The original parameter name as documented in the reference section is modified by .NET to start with a lowercase letter (even if the control defines uppercase argument names). In the ValueValidating event shown above, the type of e is AxSftDateLib20._ISftDateEvents_ValueValidatingEvent.