バージョン

BeforeDisplayMonthPopupEventArgs クラス

月ポップアップを表示するときのキャンセル可能なイベントパラメーター。
シンタックス
'宣言
 
Public Class BeforeDisplayMonthPopupEventArgs 
   Inherits System.ComponentModel.CancelEventArgs
public class BeforeDisplayMonthPopupEventArgs : System.ComponentModel.CancelEventArgs 
使用例
Private Sub ultraMonthViewMulti1_BeforeDisplayMonthPopup(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinSchedule.BeforeDisplayMonthPopupEventArgs) Handles ultraMonthViewMulti1.BeforeDisplayMonthPopup

    '	The BeforeDisplayMonthPopup event is a "cancelable" event,
    '	which means that the action to which it corresponds can be
    '	prevented from happening by canceling the event.
    '	
    '	Canceling an event is very simple - just set the 'Cancel'
    '	property of the event arguments to true. The action will then
    '	be prevented from happening, and the corresponding "After"
    '	event will not fire.

    '	If the month for which the popup is being displayed is
    '	not in the current year, we will cancel the event, effectively
    '	diallowing the displaying of the popup.
    If (e.Month.Year.YearNumber <> DateTime.Today.Year) Then
        e.Cancel = True
    End If

End Sub
private void ultraMonthViewMulti1_BeforeDisplayMonthPopup(object sender, Infragistics.Win.UltraWinSchedule.BeforeDisplayMonthPopupEventArgs e)
{

	//	The BeforeDisplayMonthPopup event is a "cancelable" event,
	//	which means that the action to which it corresponds can be
	//	prevented from happening by canceling the event.
	//	
	//	Canceling an event is very simple - just set the 'Cancel'
	//	property of the event arguments to true. The action will then
	//	be prevented from happening, and the corresponding "After"
	//	event will not fire.

	//	If the month for which the popup is being displayed is
	//	not in the current year, we will cancel the event, effectively
	//	diallowing the displaying of the popup.
	if ( e.Month.Year.YearNumber != DateTime.Today.Year )
		e.Cancel = true;	
	
}
参照