バージョン

DayOfWeekDisplayStyle プロパティ

週を表示するヘッダーを表示する位置を設定します。
シンタックス
'宣言
 
Public Property DayOfWeekDisplayStyle As DayOfWeekDisplayStyle
public DayOfWeekDisplayStyle DayOfWeekDisplayStyle {get; set;}
解説

デフォルトで、曜日ヘッダーはあらゆる Month オブジェクトの上に表示されます。DayOfWeekDisplayStyleを使用して、曜日ヘッダーを非表示にする、または Infragistics.Win.UltraWinSchedule.MonthViewMulti.VisibleMonth の最初の Infragistics.Win.UltraWinSchedule.MonthViewMulti.VisibleMonth.Row に限って表示するように制限できます。

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

    Private Sub SetupDayOfWeekCaptionStyle(ByVal hide As Boolean, ByVal firstTwoLetters As Boolean)

        '--------------------------------------------------------------------------------
        '	DayOfWeekCaptionStyle
        '
        '	This example uses the control's DayOfWeekDisplayStyle and DayOfWeekCaptionStyle
        '   properties to control the way the DayOfWeek captions are displayed
        '--------------------------------------------------------------------------------

        '   If the 'hide' parameter is true, set the DayOfWeekDisplayStyle property
        '   to 'None' and return, since the DayOfWeekCaptionStyle is then irrelevant
        If hide Then
            Me.ultraMonthViewMulti1.DayOfWeekDisplayStyle = DayOfWeekDisplayStyle.None
            Return
        Else
            '   Otherwise, set it up to display only in the first row
            Me.ultraMonthViewMulti1.DayOfWeekDisplayStyle = DayOfWeekDisplayStyle.FirstRow
        End If


        '   If the 'firstTwoLetters' parameter is true, set the DayOfWeekCaptionStyle
        '   property to FirstTwoLetters so the first 2 letters of the name of the
        '   day of the week is displayed (e.g., Mo, Tu, We, etc.); otherwise, set it
        '   to display only one
        If (firstTwoLetters) Then
            Me.ultraMonthViewMulti1.DayOfWeekCaptionStyle = DayOfWeekCaptionStyle.FirstTwoLetters
        Else
            Me.ultraMonthViewMulti1.DayOfWeekCaptionStyle = DayOfWeekCaptionStyle.FirstLetter
        End If

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

		private void SetupDayOfWeekCaptions( bool hide, bool firstTwoLetters )
		{

			//   If the 'hide' parameter is true, set the DayOfWeekDisplayStyle property
			//   to 'None' and return, since the DayOfWeekCaptionStyle is then irrelevant
			if ( hide )
			{
				this.ultraMonthViewMulti1.DayOfWeekDisplayStyle = DayOfWeekDisplayStyle.None;
				return;
			}
			else
				//   Otherwise, set it up to display only in the first row
				this.ultraMonthViewMulti1.DayOfWeekDisplayStyle = DayOfWeekDisplayStyle.FirstRow;


			//   If the 'firstTwoLetters' parameter is true, set the DayOfWeekCaptionStyle
			//   property to FirstTwoLetters so the first 2 letters of the name of the
			//   day of the week is displayed (e.g., Mo, Tu, We, etc.); otherwise, set it
			//   to display only one
			if ( firstTwoLetters )
				this.ultraMonthViewMulti1.DayOfWeekCaptionStyle = DayOfWeekCaptionStyle.FirstTwoLetters;
			else
				this.ultraMonthViewMulti1.DayOfWeekCaptionStyle = DayOfWeekCaptionStyle.FirstLetter;

		}
参照