ComponentOne Scheduler for WinForms
BeforeViewChange Event

C1.Win.C1Schedule.4 Assembly > C1.Win.C1Schedule Namespace > C1Schedule Class : BeforeViewChange Event
Fired before the ViewType property change.
Syntax
'Declaration
 
Public Event BeforeViewChange As System.EventHandler(Of BeforeViewChangeEventArgs)
public event System.EventHandler<BeforeViewChangeEventArgs> BeforeViewChange
Event Data

The event handler receives an argument of type BeforeViewChangeEventArgs containing data related to this event. The following BeforeViewChangeEventArgs properties provide information specific to this event.

PropertyDescription
(Inherited from System.ComponentModel.CancelEventArgs)
Gets or sets the range of dates which should be selected in the view.  
Gets or sets ScheduleViewEnum value determining which type of view should be selected.  
Remarks
Change BeforeViewChangeEventArgs properties to cancel action, to set other view type or to set other range of dates.
See Also