'宣言 Public Property WorkingHourAppearance As Infragistics.Win.AppearanceBase
public Infragistics.Win.AppearanceBase WorkingHourAppearance {get; set;}
Imports Infragistics.Win.UltraWinGanttView Imports Infragistics.Win.UltraWinSchedule Private Sub TimelineAppearances() Me.ultraGanttView1.TimelineSettings.WorkingHourAppearance.BackColor = Color.LightBlue Me.ultraGanttView1.TimelineSettings.NonWorkingHourAppearance.BackColor = Color.BlanchedAlmond Me.ultraGanttView1.TimelineSettings.ColumnHeaderAppearance.BackColor = Color.Gray Me.ultraGanttView1.TimelineSettings.ColumnAutoSizing = TimelineViewColumnAutoSizing.PrimaryIntervalOnly Me.ultraGanttView1.TimelineSettings.ColumnWidth = 180 End Sub
using Infragistics.Win.UltraWinGanttView; using Infragistics.Win.UltraWinSchedule; private void TimelineAppearances() { this.ultraGanttView1.TimelineSettings.WorkingHourAppearance.BackColor = Color.LightBlue; this.ultraGanttView1.TimelineSettings.NonWorkingHourAppearance.BackColor = Color.BlanchedAlmond; this.ultraGanttView1.TimelineSettings.ColumnHeaderAppearance.BackColor = Color.Gray; this.ultraGanttView1.TimelineSettings.ColumnAutoSizing = TimelineViewColumnAutoSizing.PrimaryIntervalOnly; this.ultraGanttView1.TimelineSettings.ColumnWidth = 180; }