All docs
V21.1
21.2 (EAP/Beta)
21.1
20.2
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

ScrollBarOptions.AnnotatedElements Property

Gets or sets chart elements for which scroll bar annotations are shown.

Namespace: DevExpress.Xpf.Charts

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

Declaration

public ScrollBarAnnotationElement AnnotatedElements { get; set; }

Property Value

Type Description
ScrollBarAnnotationElement

The chart elements that should be indicated by scroll bar annotations.

Available values:

Name Description
None

Scroll bar annotations are hidden.

Strip

Indicates whether to show scroll bar annotations for strips.

ConstantLine

Indicates whether to show scroll bar annotations for constant lines.

CustomLabel

Indicates whether to show scroll bar annotations for custom axis labels.

PaneAnnotation

Indicates whether to show scroll bar annotations for pane annotations.

SeriesPointAnnotation

Indicates whether to show scroll bar annotations for series point annotations.

Property Paths

You can access this nested property as listed below:

Object Type Path to AnnotatedElements
Pane
.AxisYScrollBarOptions.AnnotatedElements

Remarks

Scroll bar annotations (not to be confused with Annotations) are colored marks that reflect the position of different chart elements on a scroll bar.

The Chart Control displays scroll bars when the following properties are enabled:

Refer to Zoom and Scroll in 2D XY-Charts for more information on navigation capabilities in charts.

The Chart Control supports scroll bar annotations for the elements below:

To hide all scroll bar annotations, set the AnnotatedElements property to None.

Example

This example shows how to enable scroll bar annotations for various chart elements:

<dxc:XYDiagram2D>
    <dxc:XYDiagram2D.DefaultPane>
        <dxc:Pane EnableAxisXNavigation="True" EnableAxisYNavigation="True">
            <dxc:Pane.AxisXScrollBarOptions>
                <dxc:ScrollBarOptions AnnotatedElements="Strip, PaneAnnotation, SeriesPointAnnotation, CustomLabel"/>
            </dxc:Pane.AxisXScrollBarOptions>
            <dxc:Pane.AxisYScrollBarOptions>
                <dxc:ScrollBarOptions AnnotatedElements="ConstantLine, PaneAnnotation, SeriesPointAnnotation"/>
            </dxc:Pane.AxisYScrollBarOptions>
        </dxc:Pane>
    </dxc:XYDiagram2D.DefaultPane>
    <!--...-->
</dxc:XYDiagram2D>

Related API Members:

See Also