バージョン

DayOfWeekSettings プロパティ

7 つの DayOfWeekSettings オブジェクトのコレクションを返します。各オブジェクトが 1 つの曜日を表します。
シンタックス
'宣言
 
Public ReadOnly Property DayOfWeekSettings As DayOfWeekSettingsCollection
public DayOfWeekSettingsCollection DayOfWeekSettings {get;}
解説

Infragistics 2009 Volume 1 リリースは、DayOfWeekSettings クラスは新しい OwnerTimeSlotSettings から派生するのに変更されました。このクラスは複数の離れた時間範囲を稼働時間の定義の機能および Appearance を任意の時間範囲に定義する方法を提供します。

注: 稼働時間およびタイムスロットの外観の優先順位の詳細については、IsWorkDay クラスの WorkingHoursTimeRangeAppearances および OwnerTimeSlotSettings プロパティを参照ください。

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

        '  Add a new Owner to the Owners collection
        Dim myOwner As Owner = Me.calendarInfo.Owners.Add("myCalendar")

        '  Since the working hours reflect 15 minute breaks, make
        '  the TimeSlotInterval at least that so that the time slots
        '  visually depict the breaks.
        Me.dayView.TimeSlotInterval = TimeSlotInterval.FifteenMinutes

        Dim mondaySettings As DayOfWeekSettings = myOwner.DayOfWeekSettings(System.DayOfWeek.Monday)

        '  The day begins at 8AM to 10:45AM, with a break until 11AM
        mondaySettings.WorkingHours.Add(New TimeRange(TimeSpan.FromHours(8), TimeSpan.FromHours(10.75)))

        '  11AM to 12:30PM, with a lunch break from 12:30PM until 1:30PM
        mondaySettings.WorkingHours.Add(New TimeRange(TimeSpan.FromHours(11), TimeSpan.FromHours(12.5)))

        '  1:30PM to 3PM, with a break until 3:15PM
        mondaySettings.WorkingHours.Add(New TimeRange(TimeSpan.FromHours(13.5), TimeSpan.FromHours(15)))

        '  Back at 3:15PM to finish the day at 5PM
        mondaySettings.WorkingHours.Add(New TimeRange(TimeSpan.FromHours(16.25), TimeSpan.FromHours(17)))
using System.Collections.Generic;
using Infragistics.Win;
using Infragistics.Win.UltraWinSchedule;
using System.Diagnostics;

        //  Since the working hours reflect 15 minute breaks, make
        //  the TimeSlotInterval at least that so that the time slots
        //  visually depict the breaks.
        this.dayView.TimeSlotInterval = TimeSlotInterval.FifteenMinutes;

        //  Add a new Owner to the Owners collection
        Owner myOwner = this.calendarInfo.Owners.Add( "myCalendar" );

        DayOfWeekSettings mondaySettings = myOwner.DayOfWeekSettings[System.DayOfWeek.Monday];

        //  The day begins at 8AM to 10:45AM, with a break until 11AM
        mondaySettings.WorkingHours.Add( new TimeRange(TimeSpan.FromHours(8), TimeSpan.FromHours(10.75)) );

        //  11AM to 12:30PM, with a lunch break from 12:30PM until 1:30PM
        mondaySettings.WorkingHours.Add( new TimeRange(TimeSpan.FromHours(11), TimeSpan.FromHours(12.5)) );

        //  1:30PM to 3PM, with a break until 3:15PM
        mondaySettings.WorkingHours.Add( new TimeRange(TimeSpan.FromHours(13.5), TimeSpan.FromHours(15)) );

        //  Back at 3:15PM to finish the day at 5PM
        mondaySettings.WorkingHours.Add( new TimeRange(TimeSpan.FromHours(16.25), TimeSpan.FromHours(17)) );
参照