バージョン

ResolveWeekHeaderAppearance(Week,AppearanceData,AppearancePropFlags) メソッド

Week ヘッダーの外観を解決します。
シンタックス
'宣言
 
Public Overloads Sub ResolveWeekHeaderAppearance( _
   ByVal week As Week, _
   ByRef appearance As Infragistics.Win.AppearanceData, _
   ByRef requestedProps As Infragistics.Win.AppearancePropFlags _
) 
public void ResolveWeekHeaderAppearance( 
   Week week,
   ref Infragistics.Win.AppearanceData appearance,
   ref Infragistics.Win.AppearancePropFlags requestedProps
)

パラメータ

week
Weekオブジェクト
appearance
初期化する Appearance 構造。
requestedProps
必要とされるプロパティ
使用例
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinSchedule
Imports Infragistics.Win.UltraWinSchedule.MonthViewMulti

    Private Sub GetResolvedColorInfo()

        '	If there are no months being displayed, return
        If (Me.ultraMonthViewMulti1.VisibleMonths.Count = 0) Then Return

        Dim appData As AppearanceData = New AppearanceData()
        Dim flags As AppearancePropFlags = AppearancePropFlags.ForeColor Or AppearancePropFlags.BackColor
        Dim info As String = String.Empty

        '	Get the resolved BackColor and ForeColor of the DayAppearance
        Me.ultraMonthViewMulti1.ResolveDayAppearance(DateTime.Today, Me.ultraMonthViewMulti1.VisibleMonths(0), appData, flags)
        info += "DayAppearance: BackColor = " + appData.BackColor.ToString() + ", ForeColor = " + appData.ForeColor.ToString() + vbCrLf

        '	We must reset the AppearancePropFlags we are using each time
        '	because when an appearance property is resolved, the corresponding
        '	bit is stripped out of the AppearancePropFlags
        flags = AppearancePropFlags.ForeColor Or AppearancePropFlags.BackColor

        '	Get the resolved BackColor and ForeColor of the DayOfWeekHeaderAppearance
        Dim dow As DayOfWeekEnum = DateTime.Today.DayOfWeek
        Me.ultraMonthViewMulti1.ResolveDayOfWeekHeaderAppearance(dow, appData, flags)
        info += "DayOfWeekHeaderAppearance: BackColor = " + appData.BackColor.ToString() + ", ForeColor = " + appData.ForeColor.ToString() + vbCrLf

        '	Get the resolved BackColor and ForeColor of the MonthAppearance
        flags = AppearancePropFlags.ForeColor Or AppearancePropFlags.BackColor
        Me.ultraMonthViewMulti1.ResolveMonthAppearance(Me.ultraMonthViewMulti1.VisibleMonths(0), appData, flags)
        info += "MonthAppearance: BackColor = " + appData.BackColor.ToString() + ", ForeColor = " + appData.ForeColor.ToString() + vbCrLf

        '	Get the resolved BackColor and ForeColor of the MonthHeaderAppearance
        flags = AppearancePropFlags.ForeColor Or AppearancePropFlags.BackColor
        Me.ultraMonthViewMulti1.ResolveMonthHeaderAppearance(Me.ultraMonthViewMulti1.VisibleMonths(0), appData, flags)
        info += "MonthHeaderAppearance: BackColor = " + appData.BackColor.ToString() + ", ForeColor = " + appData.ForeColor.ToString() + vbCrLf

        '	Get the resolved BackColor and ForeColor of the MonthPopupAppearance
        flags = AppearancePropFlags.ForeColor Or AppearancePropFlags.BackColor
        Me.ultraMonthViewMulti1.ResolveMonthPopupAppearance(appData, flags)
        info += "MonthPopupAppearance: BackColor = " + appData.BackColor.ToString() + ", ForeColor = " + appData.ForeColor.ToString() + vbCrLf

        '	Get the resolved BackColor and ForeColor of the ScrollButtonAppearance
        flags = AppearancePropFlags.ForeColor Or AppearancePropFlags.BackColor
        Me.ultraMonthViewMulti1.ResolveScrollButtonAppearance(appData, flags)
        info += "ScrollButtonAppearance: BackColor = " + appData.BackColor.ToString() + ", ForeColor = " + appData.ForeColor.ToString() + vbCrLf

        '	Get the resolved BackColor and ForeColor of the WeekAppearance
        flags = AppearancePropFlags.ForeColor Or AppearancePropFlags.BackColor
        Dim week As Week = Me.ultraMonthViewMulti1.CalendarInfo.GetWeek(DateTime.Today)
        Me.ultraMonthViewMulti1.ResolveWeekAppearance(week, appData, flags)
        info += "WeekAppearance: BackColor = " + appData.BackColor.ToString() + ", ForeColor = " + appData.ForeColor.ToString() + vbCrLf

        '	Get the resolved BackColor and ForeColor of the WeekHeaderAppearance
        flags = AppearancePropFlags.ForeColor Or AppearancePropFlags.BackColor
        Me.ultraMonthViewMulti1.ResolveWeekHeaderAppearance(week, appData, flags)
        info += "WeekHeaderAppearance: BackColor = " + appData.BackColor.ToString() + ", ForeColor = " + appData.ForeColor.ToString() + vbCrLf

        '	Display the information in a message box
        MessageBox.Show(info, "GetResolvedColorInfo", MessageBoxButtons.OK)

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

		private void GetResolvedColorInfo()
		{

			//	If there are no months being displayed, return
			if ( this.ultraMonthViewMulti1.VisibleMonths.Count == 0 )
				return;

			AppearanceData appData = new AppearanceData();
			AppearancePropFlags flags = AppearancePropFlags.ForeColor | AppearancePropFlags.BackColor;
			string info = string.Empty;

			//	Get the resolved BackColor and ForeColor of the DayAppearance
			this.ultraMonthViewMulti1.ResolveDayAppearance( DateTime.Today, this.ultraMonthViewMulti1.VisibleMonths[ 0 ], ref appData, ref flags );
			info += "DayAppearance: BackColor = " + appData.BackColor.ToString() + ", ForeColor = " + appData.ForeColor.ToString() + "\n";

			//	We must reset the AppearancePropFlags we are using each time
			//	because when an appearance property is resolved, the corresponding
			//	bit is stripped out of the AppearancePropFlags
			flags = AppearancePropFlags.ForeColor | AppearancePropFlags.BackColor;

			//	Get the resolved BackColor and ForeColor of the DayOfWeekHeaderAppearance
			DayOfWeekEnum dow = (DayOfWeekEnum)(DateTime.Today.DayOfWeek);
			this.ultraMonthViewMulti1.ResolveDayOfWeekHeaderAppearance( dow, ref appData, ref flags );
			info += "DayOfWeekHeaderAppearance: BackColor = " + appData.BackColor.ToString() + ", ForeColor = " + appData.ForeColor.ToString() + "\n";

			//	Get the resolved BackColor and ForeColor of the MonthAppearance
			flags = AppearancePropFlags.ForeColor | AppearancePropFlags.BackColor;
			this.ultraMonthViewMulti1.ResolveMonthAppearance( this.ultraMonthViewMulti1.VisibleMonths[ 0 ], ref appData, ref flags );
			info += "MonthAppearance: BackColor = " + appData.BackColor.ToString() + ", ForeColor = " + appData.ForeColor.ToString() + "\n";

			//	Get the resolved BackColor and ForeColor of the MonthHeaderAppearance
			flags = AppearancePropFlags.ForeColor | AppearancePropFlags.BackColor;
			this.ultraMonthViewMulti1.ResolveMonthHeaderAppearance( this.ultraMonthViewMulti1.VisibleMonths[ 0 ], ref appData, ref flags );
			info += "MonthHeaderAppearance: BackColor = " + appData.BackColor.ToString() + ", ForeColor = " + appData.ForeColor.ToString() + "\n";

			//	Get the resolved BackColor and ForeColor of the MonthPopupAppearance
			flags = AppearancePropFlags.ForeColor | AppearancePropFlags.BackColor;
			this.ultraMonthViewMulti1.ResolveMonthPopupAppearance( ref appData, ref flags );
			info += "MonthPopupAppearance: BackColor = " + appData.BackColor.ToString() + ", ForeColor = " + appData.ForeColor.ToString() + "\n";

			//	Get the resolved BackColor and ForeColor of the ScrollButtonAppearance
			flags = AppearancePropFlags.ForeColor | AppearancePropFlags.BackColor;
			this.ultraMonthViewMulti1.ResolveScrollButtonAppearance( ref appData, ref flags );
			info += "ScrollButtonAppearance: BackColor = " + appData.BackColor.ToString() + ", ForeColor = " + appData.ForeColor.ToString() + "\n";

			//	Get the resolved BackColor and ForeColor of the WeekAppearance
			flags = AppearancePropFlags.ForeColor | AppearancePropFlags.BackColor;
			Week week = this.ultraMonthViewMulti1.CalendarInfo.GetWeek( DateTime.Today );
			this.ultraMonthViewMulti1.ResolveWeekAppearance( week, ref appData, ref flags );
			info += "WeekAppearance: BackColor = " + appData.BackColor.ToString() + ", ForeColor = " + appData.ForeColor.ToString() + "\n";

			//	Get the resolved BackColor and ForeColor of the WeekHeaderAppearance
			flags = AppearancePropFlags.ForeColor | AppearancePropFlags.BackColor;
			this.ultraMonthViewMulti1.ResolveWeekHeaderAppearance( week, ref appData, ref flags );
			info += "WeekHeaderAppearance: BackColor = " + appData.BackColor.ToString() + ", ForeColor = " + appData.ForeColor.ToString() + "\n";

			//	Display the information in a message box
			MessageBox.Show( info, "GetResolvedColorInfo", MessageBoxButtons.OK );

		}
参照