バージョン

DayOfYearIndexFromMonthAndDay メソッド

指定された月日の年間通算日インデックスを取得する静的メソッド。
シンタックス
'宣言
 
Public Shared Function DayOfYearIndexFromMonthAndDay( _
   ByVal month As Integer, _
   ByVal day As Integer _
) As Integer
public static int DayOfYearIndexFromMonthAndDay( 
   int month,
   int day
)

パラメータ

month
月番号
day
日番号

戻り値の型

年の日
使用例
Imports System.Diagnostics
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinSchedule

	Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click

		' Use the date associated with today and find its DayOfYear index.
		Dim todaysDate As DateTime = DateTime.Today
		Dim dayOfYearIndex As Integer = UltraCalendarLook.DayOfYearIndexFromMonthAndDay(todaysDate.Month, todaysDate.Day)

		Debug.WriteLine("The day of year index for today (" + todaysDate.ToShortDateString() + ") is: " + dayOfYearIndex.ToString())

	End Sub
using System.Diagnostics;
using Infragistics.Win;
using Infragistics.Win.UltraWinSchedule;

		private void button6_Click(object sender, System.EventArgs e)
		{

			// Use todays date and find its DayOfYear index.
			DateTime todaysDate	= DateTime.Today;
			int		 dayOfYearIndex	= UltraCalendarLook.DayOfYearIndexFromMonthAndDay(todaysDate.Month, todaysDate.Day);

			Debug.WriteLine("The day of year index for today (" + todaysDate.ToShortDateString() + ") is: " + dayOfYearIndex.ToString());

		}
参照