This sample code shows you how to modify the Primary Interval settings.
Imports Infragistics.Win.UltraWinGanttView
Imports Infragistics.Win.UltraWinSchedule
Private Sub SetPrimaryInterval()
'Define TimeInterval object and pass Interval and IntervalUnits as parameters to set Primary interval
Dim ganttTimeInterval As New TimeInterval(30, TimeIntervalUnits.Minutes)
Me.ultraGanttView1.TimelineSettings.PrimaryInterval = ganttTimeInterval
ganttTimeInterval.HeaderAppearance.BackColor = Color.Silver
ganttTimeInterval.HeaderTextFormat = "T"
ganttTimeInterval.HeaderTextFormatStyle = TimelineViewHeaderTextFormatStyle.FullRange
ganttTimeInterval.HeaderTextOrientation = Infragistics.Win.TextOrientationInfo.Horizontal45Degrees
End Sub
'Declaration
Public Property PrimaryInterval As Infragistics.Win.UltraWinSchedule.DateTimeInterval
using Infragistics.Win.UltraWinGanttView;
using Infragistics.Win.UltraWinSchedule;
private void SetPrimaryInterval()
{
//Define TimeInterval object and pass Interval and IntervalUnits as parameters to set Primary interval
TimeInterval ganttTimeInterval = new TimeInterval(30, TimeIntervalUnits.Minutes);
this.ultraGanttView1.TimelineSettings.PrimaryInterval = ganttTimeInterval;
ganttTimeInterval.HeaderAppearance.BackColor = Color.Silver;
ganttTimeInterval.HeaderTextFormat = "T";
ganttTimeInterval.HeaderTextFormatStyle = TimelineViewHeaderTextFormatStyle.FullRange;
ganttTimeInterval.HeaderTextOrientation = Infragistics.Win.TextOrientationInfo.Horizontal45Degrees;
}
'Declaration
Public Property PrimaryInterval As Infragistics.Win.UltraWinSchedule.DateTimeInterval
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
Reference
Timeline Class
Timeline Members
PrimaryInterval property (UltraTimelineView class)