Height

View as Markdown

Definition

Indicates the overall distance (from top to bottom) of the chart scale.

Note

Height does not return its value in terms of device pixels. However, using Height.ConvertToVerticalPixels or Height.ConvertToHorizontalPixels will convert the Height value to device pixels. Alternatively, RenderTarget.PixelSize.Height or ChartPanel.H will also provide the height in terms of device pixels.

Property Value

A double value representing the height of the chart scale.

Syntax

\<chartscale\>.Height

Examples

1protected override void OnRender(ChartControl chartControl, ChartScale chartScale)
2{
3 // the height of the entire chart scale
4 double height = chartScale.Height;
5 Print("the height of the chart scale is: " + height);
6}

In the image below, the entire height of the chart scale is represented by the blue line which is calculated at 300 pixels.

Height