MoveAnchor()

View as Markdown

Definition

Moves a Chart Anchor’s x and y values from start point by a delta point amount.

Method Return Value

This method does not return a value.

Syntax

\<chartanchor\>.MoveAnchor(ChartAnchor startDataPoint, ChartAnchor deltaDataPoint, ChartControl chartControl, ChartPanel chartPanel, ChartScale chartScale, DrawingTool drawingTool)

Method Parameters

ParameterDescription
startPointThe chart anchor’s original starting location value represented by a point structure
startDataPointA chart anchor’s original starting location value represented by a chart anchor
deltaPointThe chart anchor’s new location value to be updated represented by a point structure
deltaDataPointThe chart anchor’s new location value to be updated represented by a chart anchor
chartControlA ChartControl representing the x-axis
chartScaleA ChartScale representing the y-axis
chartPanelA ChartPanel representing the panel for the chart
drawingToolThe drawing tool which owns the chart anchor to be moved (usually this).

Examples

1//move the chart anchors x and y values
2MyAnchor.MoveAnchor(lastPoint, newPoint, chartControl, chartPanel, chartScale, this);