ChartDirector 6.2 (.NET Edition)



[C#] public ChartDirector.TextBox addBar(double startValue, double endValue, int color [, int raisedEffect [, int roundedCorners ]]);
[VB] Public Function addBar(startValue As Double, endValue As Double, color As Integer [, raisedEffect As Integer [, roundedCorners As Integer ]]) As ChartDirector.TextBox


Adds a bar to the meter.

This method adds an empty TextBox to the meter. It configures the textbox position, size and color so that it looks like a bar on the meter scale.


startValue(Mandatory)The start value of the bar.
endValue(Mandatory)The end value of the bar.
color(Mandatory)The color of the bar.
raisedEffect0The 3D border width. For positive values, the border will appear raised. For negative values, the border will appear depressed. A zero value means the border will appear flat. This argument can also be used to specify Chart.glassEffect, Chart.softLighting, Chart.cylinderEffect or Chart.flatBorder effects.
roundedCorners0The radius for the two corners at the end position of the bar.

Return Value

A TextBox object representing the bar. This may be used to fine-tune the appearance of the bar.