Skip to main content

ConstantLineTitle Class

Stores constant line title settings.

Namespace: DevExpress.Maui.Charts

Assembly: DevExpress.Maui.Charts.dll

NuGet Package: DevExpress.Maui.Charts


public class ConstantLineTitle :

The following members return ConstantLineTitle objects:


The ConstantLineTitle class properties define the common settings of a constant line title:

  • Text - Specifies the constant line title text.
  • Style - Provides access to the title text appearance settings (text color and size).
  • Visible - Allows you to show and hide the constant line title.
  • Alignment - Specifies the constant line title alignment.
  • ShowBelowLine - Specifies whether the title is displayed below or above the constant line.

To create and configure a constant line title, assign a ConstantLineTitle object with the specified properties to the constant line’s Title property.


This example shows how to add a constant line to a numeric y-axis, customize its appearance and show it in the chart legend. To do this, add a NumericConstantLine object with the specified properties to the NumericAxisY.ConstantLines collection.

NumericAxisY Constant Line


              <dxc:NumericConstantLine AxisValue="{Binding ViewModel.NightTempAverage}"
                                       LegendText="Average Annual">
                  <!-- Customize the constant line title. -->
                      <dxc:ConstantLineTitle Text="{Binding ViewModel.NightTempAverage, StringFormat='{0}°C'}"
                                      <dxc:TextStyle Color="#7f43bf" Size="12"/>
                  <!-- Customize the constant line appearance. -->
                      <dxc:ConstantLineStyle Stroke="#7f43bf" Thickness="2" Dashes="7 3"/>
See Also