The following properties of the NAxisConstLine object were removed:
NAxisConstLine.EnableBeginEnd
NAxisConstLine.BeginEndAxis
NAxisConstLine.BeginValue
NAxisConstLine.EndValue
A new property called ReferenceRanges was added to the NAxisConstLine type in order to cover the functionality of the removed properties. This property exposes a collection of NReferenceAxisRange objects. A NReferenceAxisRange object defines a reference axis and a begin-end range on that axis, for example:
C# |
Copy Code
|
---|---|
NAxisConstLine constLine = chart.Axis(StandardAxis.PrimaryY).ConstLines.Add();
constLine.Value = 100;
constLine.ReferenceRanges.Add(new NReferenceAxisRange(chart.Axis(StandardAxis.PrimaryX), 10, 20));
|
The code above creates a Const Line at value 100 of the Y axis. The const line will be displayed from value 10 up to 20 on the X axis.
The ConstLineStyle enumeration type is renamed to ConstLineMode.
The NAxisConstLine.Style property is renamed to NAxisConstLine.Mode.