[Expand]General Information
[Collapse]WinForms Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications, and Dialogs
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Expand]Data Grid
  [Expand]Vertical Grid
  [Expand]Property Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Collapse]Chart Control
   [Expand]Getting Started
   [Expand]Charting Basics
   [Expand]Series Views
   [Expand]Chart Elements
   [Expand]Providing Data
   [Expand]Data Representation
   [Expand]Appearance Customization
   [Expand]End-User Features
   [Expand]Design-Time Features
   [Collapse]Visual Elements
     Chart Area
     Chart Title
     Diagram
     Panes
     Axis
     Secondary Axis
     Axis Title
     Axis Label
     Axis Custom Label
     Axis Tickmarks
     Scale Breaks
     Constant Line
     Constant Line Title
     Grid Lines
     Strips
     Series
     Series Data Point
     Series Labels
     Series Titles
     Legend
     Legend Marker
     Legend Check Box
     Data Point Marker
     Task Link in the Gantt View
     Trend Lines
     Regression Lines
     Moving Average and Envelope
     Fibonacci Indicators
     Annotation
   [Expand]Examples
   [Expand]Additional Resources
  [Expand]Diagrams
  [Expand]Gauges
  [Expand]Map Control
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]Printing-Exporting
  [Expand]PDF Viewer
   Reporting
  [Expand]Snap
  [Expand]TreeMap Control
  [Expand]Sunburst Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

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.

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

Expanded See Also

Is this topic helpful?​​​​​​​