Skip to main content

EditableTextContent.Text Property

Gets or sets text used in editable annotations and constant lines.

Namespace: DevExpress.Xpf.Charts

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

NuGet Package: DevExpress.Wpf.Charts

Declaration

public string Text { get; set; }

Property Value

Type Description
String

A text annotation’s content.

Remarks

The following example demonstrates how to create an editable text annotation:

<dxc:ChartControl>
  <dxc:ChartControl.Annotations>
    <dxc:Annotation>
        <dxc:Annotation.Content>
            <dxc:EditableTextContent Text="Annotation"/>
        </dxc:Annotation.Content>
        <dxc:Annotation.AnchorPoint>
            <dxc:ChartAnchorPoint X="100" Y="170"/>
        </dxc:Annotation.AnchorPoint>
        <dxc:Annotation.ShapePosition>
            <dxc:RelativePosition/>
        </dxc:Annotation.ShapePosition>                        
    </dxc:Annotation>
  </dxc:ChartControl.Annotations>
  ...
</dxc:ChartControl>  
See Also