Moves the visual window (or the zoomed window) that the chart panel displays. The zoomed area is not changed. By default, the Pan method uses the BottomAxis and the LeftAxis to pan. By changing the UseBottomAxis and UseLeftAxis parameters, you can change which axes are used. The MoveX and MoveY parameters, which is based on pixels, are first converted into the equivalent amounts based on chart axis values.
Specifying a positive MoveX amount moves the zoomed window right and a negative amount moves it left. Specifying a positive MoveY amount moves the zoomed window up and a negative amount moves it down.
Use the overloaded Pan method to move the visual window using chart axis values directly.
|
---|
The Pan method does nothing if no chart axis is zoomed (Zooming = False). |
Namespace: RSChartPanel
Delphi |
public |
Parameters
MoveX
Type: Integer
MoveY
Type: Integer
UseBottomAxis
Type: Boolean
UseLeftAxis
Type: Boolean
The following code zooms the chart panel and then pans right:
|
Reference |