Skip to main content
A newer version of this page is available. .

ScrollBarAnnotationOptions.ShowCustomLabels Property

Gets or sets a value that indicates whether to show custom axis label annotations in the scroll bar.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v22.1.dll

NuGet Package: DevExpress.Charts

Declaration

public bool ShowCustomLabels { get; set; }

Property Value

Type Description
Boolean

true, if annotations for custom axis labels should be visible; otherwise, false.

Property Paths

You can access this nested property as listed below:

Object Type Path to ShowCustomLabels
ScrollBarOptions
.XAxisAnnotationOptions .ShowCustomLabels
ScrollBarOptions
.YAxisAnnotationOptions .ShowCustomLabels

Example

Use the ScrollBarOptions.XAxisAnnotationOptions property to access the scroll bar annotation settings for x-axes. Use ScrollBarOptions.YAxisAnnotationOptions for y-axes.

XYDiagram diagram = chartControl1.Diagram as XYDiagram;

diagram.EnableAxisXScrolling = true;
diagram.EnableAxisXZooming = true;
ScrollBarAnnotationOptions xAxisScrollBarOptions = diagram.DefaultPane.ScrollBarOptions.XAxisAnnotationOptions;
xAxisScrollBarOptions.ShowConstantLines = true;
xAxisScrollBarOptions.ShowStrips = true;
xAxisScrollBarOptions.ShowCustomLabels = false;
xAxisScrollBarOptions.ShowPaneAnnotations = false;
xAxisScrollBarOptions.ShowSeriesPointAnnotations = true;

diagram.EnableAxisYScrolling = true;
diagram.EnableAxisYZooming = true;
ScrollBarAnnotationOptions yAxisScrollBarOptions = diagram.DefaultPane.ScrollBarOptions.YAxisAnnotationOptions;
yAxisScrollBarOptions.ShowConstantLines = true;
yAxisScrollBarOptions.ShowStrips = true;
yAxisScrollBarOptions.ShowCustomLabels = false;
yAxisScrollBarOptions.ShowPaneAnnotations = false;
yAxisScrollBarOptions.ShowSeriesPointAnnotations = true;
See Also