API Documentation -> NtTimeChartControl -> ScrollToPos

# NtTimeChartControl.ScrollToPos Method

The vertical scroll range of the NtTimeChartControl covers all the rows you define to be displayed. You can always scroll across all rows with one sweep.
Meanwhile, the horizontal scroll range only covers a samll segment (e.g. a few days) of the tenthousand years that are generally covered by the control. See Data Sheet Concept for details.
If you want to adjust the current scroll position, you should not simply set the AutoScrollPosition property inherited from System.Windows.Forms.ScrollableControl because this would neither adjust header and flank controls accordingly nor set the internal variables of the control appropriately. Instead you better call ScrollToPos() and simply pass the scroll position's coordinates as parameters. This works just as if you would use the scroll bars via mouse control.

Overload List:

Modifier / Return Value | Name and Parameters | Description
--- | --- | ---
public void | ScrollToPos ( int targetX, int targetY ) | Sets the scroll position to the coordinates targetX and targetY. Respects the scroll limits.

Return value:

None.

Parameters:

int targetX
Horizontal scroll position. Value between 0 and AutoScrollMinSize.Width - ClientSize.Width.

int targetY
Vertical scroll position. Value between 0 and AutoScrollMinSize.Height - ClientSize.Height.

Remarks:

None.

See also:

SheetHeight
SheetWidth

Top API Documentation -> NtTimeChartControl -> ScrollToPos © 2016 Bassaly