Version

TimelineSettings Property

Returns an object which exposes properties that provide a way to customize the timeline-related aspects of the control.
Syntax
'Declaration
 
Public ReadOnly Property TimelineSettings As Timeline
public Timeline TimelineSettings {get;}
Example
This sample code illustrates various settings available for the task bars in the chart section of the control.

Imports Infragistics.Win.UltraWinGanttView
Imports Infragistics.Win.UltraWinSchedule

Private Sub setTimelineSettings() 

    ' Allow drag operation for End Indicator of tasks 
     Me.ultraGanttView1.TimelineSettings.AllowedDragActions = BarDragActions. EndDateTime

     ' Set the default back color for child task bars 
     Me.ultraGanttView1.TimelineSettings.BarSettings.BarAppearance.BackColor = Color.Blue 

     ' Set the default height for child task bars 
		Me.ultraGanttView1.TimelineSettings.BarSettings.BarHeight = 10 

		' Set the text to be displayed to the right of child task bars 
		Me.ultraGanttView1.TimelineSettings.BarSettings.BarTextRight = Infragistics.Win.UltraWinSchedule.TaskUI.BarTextField. ResourceNames

		' Set the text to be displayed at the left of child task bars 
		Me.ultraGanttView1.TimelineSettings.BarSettings.BarTextLeft = Infragistics.Win.UltraWinSchedule.TaskUI.BarTextField.PercentComplete 

		' Set the default back color for deadline indicators 
		Me.ultraGanttView1.TimelineSettings.BarSettings.DeadlineIndicatorAppearance.BackColor = Color.Red 

		
		' Set the default back color for Percent complete bars within child task bars 
		Me.ultraGanttView1.TimelineSettings.BarSettings.PercentCompleteBarAppearance.BackColor = Color.Yellow 

		'Set the height for Percent complete bars within child task bars 
		Me.ultraGanttView1.TimelineSettings.BarSettings.PercentCompleteBarHeight = 7 

    '  Set the bar settings for  Summary tasks
		Me.ultraGanttView1.TimelineSettings.BarSettingsSummary.BarTextInside = Infragistics.Win.UltraWinSchedule.TaskUI.BarTextField.Name
		Me.ultraGanttView1.TimelineSettings.BarSettingsSummary.BarAppearance.BackColor = Color.Wheat
		
		' Allow only dragging of percent complete for a specific Task
		Me.ultraGanttView1.CalendarInfo.Tasks[0].Tasks[0].TimelineSettings.AllowedDragActions = BarDragActions. PercentComplete

    
    	' Show start and end indicators for child tasks similar to summary tasks 
    	Me.ultraGanttView1.TimelineSettings.BarSettings.StartIndicatorVisible = Infragistics.Win.DefaultableBoolean.[True] 
        
     Me.ultraGanttView1.TimelineSettings.BarSettings.EndIndicatorVisible = Infragistics.Win.DefaultableBoolean.[True]

		' Set the default back color for End Indicators of child task bars 
		Me.ultraGanttView1.TimelineSettings.BarSettings.EndIndicatorAppearance.BackColor = Color.Green 
 
End Sub
using Infragistics.Win.UltraWinGanttView;
using Infragistics.Win.UltraWinSchedule;


private void setTimelineSettings()
{
	        // Allow drag operation for End Indicator of tasks
				this.ultraGanttView1.TimelineSettings.AllowedDragActions = BarDragActions. EndDateTime;

				// Set the default back color for child task bars
				this.ultraGanttView1.TimelineSettings.BarSettings.BarAppearance.BackColor = Color.Blue;

				// Set the height for child task bars
				this.ultraGanttView1.TimelineSettings.BarSettings.BarHeight = 10;

				// Set the Text to be displayed at the right of child task bars
				this.ultraGanttView1.TimelineSettings.BarSettings.BarTextRight = Infragistics.Win.UltraWinSchedule.TaskUI.BarTextField.ResourceNames;

				// Set the Text to be displayed at the left of child task bars
				this.ultraGanttView1.TimelineSettings.BarSettings.BarTextLeft = Infragistics.Win.UltraWinSchedule.TaskUI.BarTextField.PercentComplete;

				// Set the default back color for deadline indicators
				this.ultraGanttView1.TimelineSettings.BarSettings.DeadlineIndicatorAppearance.BackColor = Color.Red;

				
				// Set the default back color for Percent complete bars within child task bars
				this.ultraGanttView1.TimelineSettings.BarSettings.PercentCompleteBarAppearance.BackColor = Color.Yellow;

				// Set the height for Percent complete bars within child task bars
				this.ultraGanttView1.TimelineSettings.BarSettings.PercentCompleteBarHeight = 7;

				// Set the bar settings for  Summary tasks
				this.ultraGanttView1.TimelineSettings.BarSettingsSummary.BarTextInside = Infragistics.Win.UltraWinSchedule.TaskUI.BarTextField.Name;
				this.ultraGanttView1.TimelineSettings.BarSettingsSummary.BarAppearance.BackColor = Color.Wheat;

				// Allow only dragging of percent complete for a specific Task
				this.ultraGanttView1.CalendarInfo.Tasks[0].Tasks[0].TimelineSettings.AllowedDragActions = BarDragActions. PercentComplete;

          // Show start and end indicators for child tasks similar to summary tasks
          this.ultraGanttView1.TimelineSettings.BarSettings.StartIndicatorVisible = Infragistics.Win.DefaultableBoolean.True;
          this.ultraGanttView1.TimelineSettings.BarSettings.EndIndicatorVisible = Infragistics.Win.DefaultableBoolean.True;

          // Set the default back color for End Indicators of child task bars
				this.ultraGanttView1.TimelineSettings.BarSettings.EndIndicatorAppearance.BackColor = Color.Green;


}
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