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

DateTimeConstantLine Class

The vertical straight line that passes through the chart and indicates a date-time x-axis’s value.

Namespace: DevExpress.Maui.Charts

Assembly: DevExpress.Maui.Charts.dll

NuGet Package: DevExpress.Maui.Charts

#Declaration

C#
public class DateTimeConstantLine :
    ConstantLineBase

#Remarks

The following image demonstrates how the Date-Time Constant Line looks:

Date-Time Constant Line Sample

Each axis can have any number of constant lines. A date-time axis (DateTimeAxisX) holds its constant lines in the DateTimeConstantLineCollection collection which the DateTimeAxisX.ConstantLines property returns.

The following properties allow you to define constant line settings:

Property

Description

AxisValue

Gets or sets the constant line position along the axis. This is a bindable property.

ShowBehind

Gets or sets whether the constant line is displayed behind series. This is a bindable property.

VisibleInLegend

Indicates whether the constant line is shown in the chart legend. This is a bindable property.

LegendText

Gets or sets the text that identifies the constant line in the chart legend. This is a bindable property.

Title

Gets or sets settings of the constant line title. This is a bindable property.

Style

Gets or sets the constant line appearance settings. This is a bindable property.

See Also