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

ChartCommands.AddVerticalConstantLineCommand Property

Activates the Add Vertical Constant Line mode.

Namespace: DevExpress.Xpf.Charts

Assembly: DevExpress.Xpf.Charts.v24.2.dll

NuGet Package: DevExpress.Wpf.Charts

#Declaration

public ICommand AddVerticalConstantLineCommand { get; set; }

#Property Value

Type Description
ICommand

An object that implements ICommand.

#Remarks

This command activates the Add Vertical Constant Line mode. After the command is called, users can click a chart to add a vertical constant line with an editable title. Constant lines are added to the Axis2D.ConstantLinesInFront collection. Users can also move this constant line.

<dxc:ChartControl x:Name="chart">
     <!--...-->
</dxc:ChartControl>
<dx:SimpleButton Content="Add Vertical Constant Line" 
                 Command="{Binding ElementName=chart, Path=Commands.AddVerticalConstantLineCommand}"
                 HorizontalAlignment="Left" VerticalAlignment="Top"
                 Height="20">
</dx:SimpleButton>
See Also