Type | Description | |||
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. |
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