Back to Devexpress

Constant Line

windowsforms-1984-controls-and-libraries-chart-control-visual-elements-constant-line.md

latest2.7 KB
Original Source

Constant Line

  • Apr 01, 2018

A Constant Line is used to indicate the value on the corresponding axis in the diagram. Each axis can contain any number of constant lines within its Axis2D.ConstantLines collection. A constant line can be identified by its title. For more detailed information, refer to Constant Lines.

The table below lists the main properties which affect the element’s appearance and functionality:

|

Availability

|

The Axis2D.ConstantLines property of an axis, the ConstantLineCollection.Item property of the axis’s constant line collection.

| |

Appearance

|

ConstantLine.Color, ConstantLine.LineStyle

| |

Identification

|

ChartElementNamed.Name, ConstantLine.LegendText, ConstantLine.ShowInLegend, ConstantLine.Title

| |

Position

|

ConstantLine.AxisValue, ConstantLine.ShowBehind

| |

Visibility

|

ConstantLine.Visible, ConstantLine.CheckedInLegend

| |

Custom Draw Event

|

ChartControl.CustomDrawSeries

|

See Also

Constant Lines

How to: Add a Constant Line to an Axis

How to: Provide Interactive Editing for a Constant Line