Skip to main content
All docs
V25.1
  • ChartCommands.AddTextAnnotationCommand Property

    Activates the Add Text Annotation mode.

    Namespace: DevExpress.Xpf.Charts

    Assembly: DevExpress.Xpf.Charts.v25.1.dll

    NuGet Package: DevExpress.Wpf.Charts

    Declaration

    public ICommand AddTextAnnotationCommand { get; set; }

    Property Value

    Type Description
    ICommand

    An object that implements ICommand.

    Remarks

    This command activates the Add Text Annotation mode. After the command is called, users can click a chart to add an editable text annotation. The annotation is automatically anchored to the pane.

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