CanvasRight

View as Markdown

Definition

Indicates the x-coordinate (in pixels) of the end of the chart canvas area.

Property Value

A double representing the end of the chart canvas area.

Syntax

\<chartcontrol\>.CanvasRight

Examples

1protected override void OnRender(ChartControl chartControl, ChartScale chartScale)
2{
3 // Store the beginning and ending x-coordinates of the canvas area
4 double canvasBeginCoordinate = chartControl.CanvasLeft;
5 double canvasEndCoordinate = chartControl.CanvasRight;
6
7 // Print the stored values
8 Print(String.Format("Chart canvas begins at x-coordinate {0} and ends at x-coordinate {1}", canvasBeginCoordinate, canvasEndCoordinate));
9}

Based on the image below, CanvasRight reveals that the chart canvas ends at x-coordinate 526.

ChartControl_CanvasRight