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 G2antt1.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_g2antt.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 AxG2antt1.Chart .ScrollTo(DateTime.Parse("6/1/2005"), EXG2ANTTLib.AlignmentEnum.CenterAlignment) End With
The following C# sample ensures that the "6/1/2005" is listed in the center of the chart:
axG2antt1.Chart.ScrollTo(DateTime.Parse("6/1/2005"), EXG2ANTTLib.AlignmentEnum.CenterAlignment);
The following VFP sample ensures that the "6/1/2005" is listed in the center of the chart:
With thisform.G2antt1.Chart .ScrollTo( "6/2/2005", 1 ) EndWith