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

ScrollBarOptions.XAxisScrollBarAlignment Property

Specifies the alignment of the X-axis scroll bar.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v18.2.dll

Declaration

[XtraSerializableProperty]
public ScrollBarAlignment XAxisScrollBarAlignment { get; set; }

Property Value

Type Description
ScrollBarAlignment

A ScrollBarAlignment enumeration value which specifies the position of a scroll bar relative to an XY-diagram.

Available values:

Name Description
Near

A scroll bar is painted either at the top or on the right of an XY-diagram.

Far

A scroll bar is painted either at the bottom or on the left of an XY-diagram.

Property Paths

You can access this nested property as listed below:

Object Type Path to XAxisScrollBarAlignment
XYDiagramDefaultPane
.ScrollBarOptions.XAxisScrollBarAlignment
XYDiagramPane
.ScrollBarOptions.XAxisScrollBarAlignment
XYDiagramPaneBase
.ScrollBarOptions.XAxisScrollBarAlignment

Remarks

The following images demonstrate how the XAxisScrollBarAlignment property works.

XAxisScrollBarAlignment = Near XAxisScrollBarAlignment = Far
EnableAxisXScrolling XAxisScrollbar_Far

To specify the Y-axis scroll bar’s alignment, use the similar ScrollBarOptions.YAxisScrollBarAlignment property.

For a related code example, refer to How to: Customize the Appearance of a Pane’s Scroll Bar (Runtime Sample).

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the XAxisScrollBarAlignment property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also