W (Width)

View as Markdown

Definition

Indicates the width (in pixels) of the paintable area of the chart panel.

The paintable area does not extend all the way to the right edge of the panel itself, as seen in the image below.

Property Value

A int representing the width of the panel in pixels

Syntax

ChartPanel.W

Example

1protected override void OnRender(ChartControl chartControl, ChartScale chartScale)
2{
3 base.OnRender(chartControl, chartScale);
4
5 // Print the width of the panel
6 Print(ChartPanel.W);
7}

Based on the image below, W reveals that the chart panel is 451 pixels wide.

ChartPanel_W