MoveAnchorX()

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference > Drawing Tool > ChartAnchor >

MoveAnchorX()

Previous page Return to chapter overview Next page

Definition

Moves an anchor's x value from start point by a delta point amount.

 

Method Return Value

This method does not return a value.

 

Syntax

<ChartAnchor>.MoveAnchorX(Point startPoint, Point deltaPoint, ChartControl chartControl, ChartPanel chartPanel, ChartScale chartScale)

 

Method Parameters

startPoint

The chart anchor's original starting point value

deltaPoint

The chart anchor's new point value to be updated

chartControl

A ChartControl representing the x-axis

chartScale

A ChartScale representing the y-axis

 

 

Examples

ns

//move only the chart anchors x (bar/time) value

MyAnchor.MoveAnchorX(lastPoint, newPoint, chartControl, chartScale);