ChartDirector 6.2 (.NET Edition)

LinearMeter.addZone


Usage

[C#] public ChartDirector.TextBox addZone(double startValue, double endValue, int color [, string label ]);
[VB] Public Function addZone(startValue As Double, endValue As Double, color As Integer [, label As String ]) As ChartDirector.TextBox

Description

Adds a zone to the meter.

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

Arguments

ArgumentDefaultDescription
startValue(Mandatory)The start value (the lower bound) for the zone.
endValue(Mandatory)The end value (the upper bound) for the zone.
color(Mandatory)The color of the zone.
label""The text to be put at the center of the zone.

Return Value

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