method Chart.ScrollTo (Date as Date, [Align as Variant])
Scrolls the chart so the specified date is visible.

TypeDescription
Date as Date A Date expression that indicates the date being ensured that's visible.
Align as Variant An AlignmentEnum expression that indicates where the date will be placed. 
Use the ScrollTo method to ensure that specified date fits the chart's area. The FirstVisibleDate property specifies the first visible date. The ScrollTo method fires the DateChange event if the first visible date is changed. Use the Zoom method to zoom the chart to a specified interval of dates. Use the PaneWidth property to specify the width of the chart.

The following VB sample ensures that the "6/1/2005" is listed in the center of the chart:

With Gantt1.Chart
    .ScrollTo #6/1/2005#, AlignmentEnum.CenterAlignment
End With

The following C++ sample ensures that the "6/1/2005" is listed in the center of the chart:

COleDateTime date( 2005, 6, 1, 0, 0, 0 );
CChart chart = m_gantt.GetChart();
chart.ScrollTo( date.m_dt, COleVariant( (long)1 ) );

The following VB.NET sample ensures that the "6/1/2005" is listed in the center of the chart:

With AxGantt1.Chart
    .ScrollTo(DateTime.Parse("6/1/2005"), EXGANTTLib.AlignmentEnum.CenterAlignment)
End With

The following C# sample ensures that the "6/1/2005" is listed in the center of the chart:

axGantt1.Chart.ScrollTo(DateTime.Parse("6/1/2005"), EXGANTTLib.AlignmentEnum.CenterAlignment);

The following VFP sample ensures that the "6/1/2005" is listed in the center of the chart:

With thisform.Gantt1.Chart
	.ScrollTo( "6/2/2005", 1 )
EndWith