バージョン

GetMonthFromPoint(Int32,Int32) メソッド

指定した位置の Infragistics.Win.UltraWinSchedule.MonthViewMulti.VisibleMonth オブジェクトを返します。
シンタックス
'宣言
 
Public Overloads Function GetMonthFromPoint( _
   ByVal x As Integer, _
   ByVal y As Integer _
) As VisibleMonth
public VisibleMonth GetMonthFromPoint( 
   int x,
   int y
)

パラメータ

x
X座標
y
Y座標

戻り値の型

指定されたポイントに配置されている Infragistics.Win.UltraWinSchedule.MonthViewMulti.VisibleMonth オブジェクト、または指定された位置に月がない場合は null(VBではNothing)。
使用例
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinSchedule
Imports Infragistics.Win.UltraWinSchedule.MonthViewMulti

    Private Function IsCurrentMonthAtPoint(ByVal point As Point) As Boolean

        '	Use the GetMonthFromPoint method to return the VisibleMonth
        '	at those coordinates, if there is one
        Dim visibleMonth As VisibleMonth
        visibleMonth = Me.ultraMonthViewMulti1.GetMonthFromPoint(Point)

        '	If the return value from the GetMonthFromPoint method is Nothing,
        '	there is no month at the specified point, so return false
        If (visibleMonth Is Nothing) Then
            Return False
        End If

        '	If there was a VisibleMonth, see if it is the current month
        If (visibleMonth.Month.MonthNumber = DateTime.Today.Month And _
          visibleMonth.Month.Year.YearNumber = DateTime.Today.Year) Then
            Return True
        End If

        Return False

    End Function
using Infragistics.Win;
using Infragistics.Win.UltraWinSchedule;
using Infragistics.Win.UltraWinSchedule.MonthViewMulti;

		private bool IsCurrentMonthAtPoint( Point point )
		{

			//	Use the GetMonthFromPoint method to return the VisibleMonth
			//	at those coordinates, if there is one
			VisibleMonth visibleMonth;
			visibleMonth = this.ultraMonthViewMulti1.GetMonthFromPoint( point );

			//	If the return value from the GetMonthFromPoint method is null,
			//	there is no month at the specified point, so return false
			if ( visibleMonth == null )
				return false;

			//	If there was a VisibleMonth, see if it is the current month
			if ( visibleMonth.Month.MonthNumber == DateTime.Today.Month &&
				 visibleMonth.Month.Year.YearNumber == DateTime.Today.Year )
				return true;

			return false;

		}
参照