GetPoint()

<< Click to Display Table of Contents >>

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

GetPoint()

Previous page Return to chapter overview Next page

Definition

Returns a chart anchor's data point in device pixels

 

Method Return Value

A Point structure; a point value in device pixels for a chart's given panel & scale

 

Syntax

<chartAnchor>.GetPoint(ChartControl chartControl, ChartPanel chartPanel, ChartScale, [bool pixelAlign])

 

Method Parameters

chartControl

A ChartControl representing the x-axis

chartPanel

A ChartPanel representing the a panel of the chart

chartScale

A ChartScale representing the y-axis

pixelAlign

An optional bool determining if the data point should be rounded to closest .5 pixel point

 

 

Examples

ns

//gets the chart anchors data points

Point anchorPoint = MyAnchor.GetPoint(chartControl, chartPanel, chartScale);