Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

Constant Line

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.

ConstantLines_0

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