バージョン

AlternateMonthAppearance プロパティ

隔月の Infragistics.Win.AppearanceBase を返すまたは設定します。
シンタックス
'宣言
 
Public Property AlternateMonthAppearance As Infragistics.Win.AppearanceBase
public Infragistics.Win.AppearanceBase AlternateMonthAppearance {get; set;}
解説

どの月を交互月と見なすかは、現在の日付の月に基づいて決定されます。後続の月およびそれ以降の月が交互月と見なされます。これは再度代替となり、それ以降の月は交互月とは見なされません。

例:

今日の日付が 7/4/01 の場合、2001 年 7 月は交互月とはなりません。2001年の7月と2001年の8月は交互月になります。そのパターンに従うと、2001 年 5 月と 2001 年 9 月は交互月と見なされません。

デフォルトでこの設定を使用する唯一のコントロールは UltraMonthViewSingle です。ただし、UltraMonthViewMultiBase.UseAlternateMonthAppearancesプロパティが True に設定される場合、UltraMonthViewMultiUltraCalendarCombo もこの設定を使用することができます。UltraCalendarCombo または UltraMonthViewMulti 内の特定の Infragistics.Win.UltraWinSchedule.MonthViewMulti.VisibleMonth が交互月かどうかを決定するには、Infragistics.Win.UltraWinSchedule.MonthViewMulti.VisibleMonth.IsAlternateMonthをチェックできます。

使用例
Imports System.Diagnostics
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinSchedule

	Private Sub Button14_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button14.Click

		' The code below shows how UltraCalendarLook appearance properties can be set
		' and overridden.  Note that not all appearance properties are shown, but the
		' approach would be the same with the missing appearance properties.

		' Create some named appearances we can use throughout our code.
		Me.UltraCalendarLook1.Appearances.Add("Blue Tone")
		Me.UltraCalendarLook1.Appearances("Blue Tone").BackColor = Color.LightBlue
		Me.UltraCalendarLook1.Appearances("Blue Tone").ForeColor = Color.DarkBlue

		Me.UltraCalendarLook1.Appearances.Add("Blue Tone with gradient")
		Me.UltraCalendarLook1.Appearances("Blue Tone with gradient").BackColor = Color.LightBlue
		Me.UltraCalendarLook1.Appearances("Blue Tone with gradient").BackColor2 = Color.CadetBlue
		Me.UltraCalendarLook1.Appearances("Blue Tone with gradient").BackGradientStyle = GradientStyle.VerticalBump
		Me.UltraCalendarLook1.Appearances("Blue Tone with gradient").ForeColor = Color.DarkBlue


		' Setup the UltraCalendarLook's DayAppearance property.  This will serve as a default
		' appearance for all days.  We will then set various other day-related appearances to
		' override the default appearance.
		Me.UltraCalendarLook1.DayAppearance.BackColor = SystemColors.Window
		Me.UltraCalendarLook1.DayAppearance.BackColor2 = SystemColors.ControlLight
		Me.UltraCalendarLook1.DayAppearance.BackGradientStyle = GradientStyle.Horizontal

		Me.UltraCalendarLook1.DayAppearance.ForeColor = SystemColors.WindowText


		' Override the day appearance for all Christmas days.
		Me.UltraCalendarLook1.DaysOfYearLook(12, 25).Appearance.BackColor = Color.Green
		Me.UltraCalendarLook1.DaysOfYearLook(12, 25).Appearance.ForeColor = Color.Red


		' Change the appearance for Christmas day 2003
		Me.UltraCalendarLook1.GetDayLook(New DateTime(2002, 12, 25), True).Appearance = Me.UltraCalendarLook1.Appearances("Blue Tone with gradient")


		' Override the look for the month of June 2002.
		Me.UltraCalendarLook1.GetMonthLook(6, 2002).Appearance = Me.UltraCalendarLook1.Appearances("Blue Tone with gradient")


		' Override the look for all wednesdays.
		Me.UltraCalendarLook1.DaysOfWeekLook(DayOfWeekEnum.Wednesday).Appearance = Me.UltraCalendarLook1.Appearances("Blue Tone with gradient")


		' Override the look for the 15th of each month.
		Me.UltraCalendarLook1.DaysOfMonthLook(15).Appearance.BackColor = Color.Cyan

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

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

			// The code below shows how UltraCalendarLook appearance properties can be set
			// and overridden.  Note that not all appearance properties are shown, but the
			// approach would be the same with the missing appearance properties.
			
			// Create some named appearances we can use throughout our code.
			this.ultraCalendarLook1.Appearances.Add("Blue Tone");
			this.ultraCalendarLook1.Appearances["Blue Tone"].BackColor = Color.LightBlue;
			this.ultraCalendarLook1.Appearances["Blue Tone"].ForeColor = Color.DarkBlue;

			this.ultraCalendarLook1.Appearances.Add("Blue Tone with gradient");
			this.ultraCalendarLook1.Appearances["Blue Tone with gradient"].BackColor			= Color.LightBlue;
			this.ultraCalendarLook1.Appearances["Blue Tone with gradient"].BackColor2			= Color.CadetBlue;
			this.ultraCalendarLook1.Appearances["Blue Tone with gradient"].BackGradientStyle	= GradientStyle.VerticalBump;
			this.ultraCalendarLook1.Appearances["Blue Tone with gradient"].ForeColor			= Color.DarkBlue;


			// Setup the UltraCalendarLook's DayAppearance property.  This will serve as a default
			// appearance for all days.  We will then set various other day-related appearances to
			// override the default appearance.
			this.ultraCalendarLook1.DayAppearance.BackColor		= SystemColors.Window;
			this.ultraCalendarLook1.DayAppearance.BackColor2		= SystemColors.ControlLight;
			this.ultraCalendarLook1.DayAppearance.BackGradientStyle	= GradientStyle.Horizontal;

			this.ultraCalendarLook1.DayAppearance.ForeColor		= SystemColors.WindowText;


			// Override the day appearance for all Christmas days.
			this.ultraCalendarLook1.DaysOfYearLook[12, 25].Appearance.BackColor	= Color.Green;
			this.ultraCalendarLook1.DaysOfYearLook[12, 25].Appearance.ForeColor	= Color.Red;


			// Change the appearance for Christmas day 2003
			this.ultraCalendarLook1.GetDayLook(new DateTime(2002, 12, 25), true).Appearance = this.ultraCalendarLook1.Appearances["Blue Tone with gradient"];


			// Override the look for the month of June 2002.
			this.ultraCalendarLook1.GetMonthLook(06, 2002).Appearance = this.ultraCalendarLook1.Appearances["Blue Tone with gradient"];


			// Override the look for all wednesdays.
			this.ultraCalendarLook1.DaysOfWeekLook[DayOfWeekEnum.Wednesday].Appearance = this.ultraCalendarLook1.Appearances["Blue Tone with gradient"];


			// Override the look for the 15th of each month.
			this.ultraCalendarLook1.DaysOfMonthLook[15].Appearance.BackColor = Color.Cyan;

		}
参照