バージョン

MinimumActivityDuration プロパティ

コントロールに表示される 予定または 休日 の最小時間を決定する値を取得または設定します。
シンタックス
'宣言
 
Public Property MinimumActivityDuration As TimeSpan
public TimeSpan MinimumActivityDuration {get; set;}
例外
例外解説
System.ArgumentOutOfRangeException値が負の数か、 ゼロ(0)より小さいときに発生します。
解説

PrimaryInterval に生成されたサイクルほうが表示されるアクティビティの期間より比較的長い場合は、短い期間のアクティビティを非表示にしたほうがいいことがあります。MinimumActivityDuration プロパティによって可能になります。たとえば、プロパティを 30 分の値に設定する場合は、30 分より短い期間の予定を表示せず、30 分より長い期間の予定を表示するためにもっとの利用可能スペースを提供します。

注: 指定値の Seconds および Milliseconds コンポーネントは割り当てのときにストリップ アウトされます。UltraTimelineView は、1 分以下の時間ユニットを認識しません。

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

    Public Sub InitActivityProps(ByVal control As UltraTimelineView)

        '  Align activities with the PrimaryInterval, so that the
        '  edges of the elements are flush with the time slot borders
        control.AlignActivityWithPrimaryInterval = DefaultableBoolean.True

        '  Set the height of the bar color indicator, and show it
        control.AppointmentDisplaySettings.BarColorIndicatorHeight = 5
        control.AppointmentDisplaySettings.BarColorIndicatorVisibility = TimelineViewBarColorIndicatorVisibility.ShowOnTop

        '  Show continuation arrows for appointments whose start/end time is not visible
        control.AppointmentDisplaySettings.DateTimeContinuationIndicatorVisibility = TimelineViewDateTimeContinuationIndicatorVisibility.Both

        '  Don't display the resolved appointment appearance image to conserve space
        control.AppointmentDisplaySettings.DisplayAppearanceImage = DefaultableBoolean.False

        '  Display the appointment subject, but not the location
        control.AppointmentDisplaySettings.DisplayLocation = DefaultableBoolean.False
        control.AppointmentDisplaySettings.DisplaySubject = DefaultableBoolean.True

        '  Display the recurrence and reminder indicators on the left
        control.AppointmentDisplaySettings.RecurrenceIndicatorVisibility = TimelineViewRecurrenceIndicatorVisibility.Right
        control.AppointmentDisplaySettings.ReminderIndicatorVisibility = TimelineViewReminderIndicatorVisibility.Left

        '  Display the start and end times, each on either side of the subject
        control.AppointmentDisplaySettings.TimeVisibility = TimelineViewAppointmentTimeVisibility.BothSeparate

        '  Only allow dragging appointments within the same owner
        control.AppointmentDragMode = TimelineViewAppointmentDragMode.WithinSameOwner

        '  Always show appointment tooltips
        control.AppointmentToolTipVisibility = TimelineViewActivityToolTipVisibility.Always

        '  Hide all-day events from the timeline view
        control.AppointmentVisibility = TimelineViewAppointmentVisibility.HideAllDayEvents

        '  Enable automatic creation of appointments when enter key
        '  is pressed on a time slot, and when a time slot is double-clicked
        control.AutoAppointmentCreate = True
        control.AutoAppointmentDialog = True

        '  Only show holidays for the unassigned owner, and never show tooltips for them
        control.HolidayVisibility = TimelineViewHolidayVisibility.ShowForUnassignedOwner
        control.HolidayToolTipVisibility = TimelineViewActivityToolTipVisibility.Never

        '  Only show activities whose duration is at least one hour
        '  allow appointment resizing, but only to a duration of
        '  no less than two hours
        control.AllowAppointmentResize = True
        control.MinimumActivityDuration = TimeSpan.FromHours(1)
        control.MinimumAppointmentResizeDuration = TimeSpan.FromHours(2)
    End Sub
using System.Collections.Generic;
using Infragistics.Win;
using Infragistics.Win.UltraWinSchedule;
using System.Diagnostics;

    public void InitActivityProps( UltraTimelineView control )
    {
        //  Align activities with the PrimaryInterval, so that the
        //  edges of the elements are flush with the time slot borders
        control.AlignActivityWithPrimaryInterval = DefaultableBoolean.True;

        //  Set the height of the bar color indicator, and show it
        control.AppointmentDisplaySettings.BarColorIndicatorHeight = 5;
        control.AppointmentDisplaySettings.BarColorIndicatorVisibility = TimelineViewBarColorIndicatorVisibility.ShowOnTop;

        //  Show continuation arrows for appointments whose start/end time is not visible
        control.AppointmentDisplaySettings.DateTimeContinuationIndicatorVisibility = TimelineViewDateTimeContinuationIndicatorVisibility.Both;

        //  Don't display the resolved appointment appearance image to conserve space
        control.AppointmentDisplaySettings.DisplayAppearanceImage = DefaultableBoolean.False;

        //  Display the appointment subject, but not the location
        control.AppointmentDisplaySettings.DisplayLocation = DefaultableBoolean.False;
        control.AppointmentDisplaySettings.DisplaySubject = DefaultableBoolean.True;
        
        //  Display the recurrence and reminder indicators on the left
        control.AppointmentDisplaySettings.RecurrenceIndicatorVisibility = TimelineViewRecurrenceIndicatorVisibility.Right;
        control.AppointmentDisplaySettings.ReminderIndicatorVisibility = TimelineViewReminderIndicatorVisibility.Left;

        //  Display the start and end times, each on either side of the subject
        control.AppointmentDisplaySettings.TimeVisibility = TimelineViewAppointmentTimeVisibility.BothSeparate;

        //  Only allow dragging appointments within the same owner
        control.AppointmentDragMode = TimelineViewAppointmentDragMode.WithinSameOwner;

        //  Always show appointment tooltips
        control.AppointmentToolTipVisibility = TimelineViewActivityToolTipVisibility.Always;

        //  Hide all-day events from the timeline view
        control.AppointmentVisibility = TimelineViewAppointmentVisibility.HideAllDayEvents;

        //  Enable automatic creation of appointments when enter key
        //  is pressed on a time slot, and when a time slot is double-clicked
        control.AutoAppointmentCreate = true;
        control.AutoAppointmentDialog = true;

        //  Only show holidays for the unassigned owner, and never show tooltips for them
        control.HolidayVisibility = TimelineViewHolidayVisibility.ShowForUnassignedOwner;
        control.HolidayToolTipVisibility = TimelineViewActivityToolTipVisibility.Never;

        //  Only show activities whose duration is at least one hour;
        //  allow appointment resizing, but only to a duration of
        //  no less than two hours
        control.AllowAppointmentResize = true;
        control.MinimumActivityDuration = TimeSpan.FromHours(1);
        control.MinimumAppointmentResizeDuration = TimeSpan.FromHours(2);
    }
参照