Version

PrimaryInterval Property

Returns or sets the DateTimeInterval-derived instance which is represented in the bottom row of column headers, and which defines the smallest time interval in effect for the control.
Syntax
'Declaration
 
Public Property PrimaryInterval As Infragistics.Win.UltraWinSchedule.DateTimeInterval
public Infragistics.Win.UltraWinSchedule.DateTimeInterval PrimaryInterval {get; set;}
Remarks

For detailed information on the subject of the PrimaryInterval property, see the documentation for the PrimaryInterval property of the UltraTimelineView control.

Example
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
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;
}
Requirements

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

See Also

Reference

Timeline Class
Timeline Members
PrimaryInterval property (UltraTimelineView class)