バージョン

NonWorkingHourAppearance プロパティ (UltraTimelineView)

非稼動時間範囲に表示される TimeSlotUIElements の外観を取得または設定します。
シンタックス
'宣言
 
Public Property NonWorkingHourAppearance As Infragistics.Win.AppearanceBase
public Infragistics.Win.AppearanceBase NonWorkingHourAppearance {get; set;}
解説

Office 2007 の ViewStyle の場合、各オーナーの外観は、そのオーナーだけが保持できるカラー スキーマ を使用して自動的に解決されます。NonWorkingHourAppearance は、稼働時間外の TimeSlotUIElements に適用されるため、自動設定をオーバーライドします。

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

    Public Sub InitAppearances(ByVal control As UltraTimelineView)

        '  Use a navy blue foreground color for all elements
        control.Appearance.ForeColor = Color.Navy

        '  Set the working hour, non-working hour, and selected range
        '  appearances to customized colors
        control.WorkingHourAppearance.BackColor = Color.White
        control.WorkingHourAppearance.BorderColor = Color.DarkGray
        control.NonWorkingHourAppearance.BackColor = Color.LightGray
        control.NonWorkingHourAppearance.BorderColor = Color.Gray
        control.SelectedDateTimeRangeAppearance.BackColor = Color.GhostWhite
        control.SelectedDateTimeRangeAppearance.BackColor2 = Color.LightBlue
        control.SelectedDateTimeRangeAppearance.BackGradientStyle = GradientStyle.Vertical
        control.SelectedDateTimeRangeAppearance.BorderColor = Color.Navy
    End Sub
using System.Collections.Generic;
using Infragistics.Win;
using Infragistics.Win.UltraWinSchedule;
using System.Diagnostics;

    public void InitAppearances( UltraTimelineView control )
    {
        //  Use a navy blue foreground color for all elements
        control.Appearance.ForeColor = Color.Navy;

        //  Set the working hour, non-working hour, and selected range
        //  appearances to customized colors
        control.WorkingHourAppearance.BackColor = Color.White;
        control.WorkingHourAppearance.BorderColor = Color.DarkGray;
        control.NonWorkingHourAppearance.BackColor = Color.LightGray;
        control.NonWorkingHourAppearance.BorderColor = Color.Gray;
        control.SelectedDateTimeRangeAppearance.BackColor = Color.GhostWhite;
        control.SelectedDateTimeRangeAppearance.BackColor2 = Color.LightBlue;
        control.SelectedDateTimeRangeAppearance.BackGradientStyle = GradientStyle.Vertical;
        control.SelectedDateTimeRangeAppearance.BorderColor = Color.Navy;
    }
参照