ScrollBarOptions.BackColor Property
Gets or sets the background color of scroll bars.
Namespace: DevExpress.XtraCharts
Assembly: DevExpress.XtraCharts.v24.2.dll
NuGet Package: DevExpress.Charts
#Declaration
#Property Value
Type | Description |
---|---|
Color | A Color value which represents the background color of scroll bars. |
#Property Paths
You can access this nested property as listed below:
Object Type | Path to Back |
---|---|
XYDiagram |
|
#Remarks
A Scroll bar’s appearance is determined by its BackColor, ScrollBarOptions.BarColor, ScrollBarOptions.BorderColor and ScrollBarOptions.BarThickness properties.
Note
If the Back
The following images demonstrate the BackColor property in action.
Back (the default value) | Back |
---|---|
For more information on customizing the scroll bars, refer to Panes.
#Example
This example demonstrates how the appearance of a pane‘s scroll bar can be customized.
Note that for a pane, it’s possible to individually adjust the position and visibility of its X and Y-axis’ scroll bars.
ScrollBarOptions scrollBarOptions = diagram.DefaultPane.ScrollBarOptions;
scrollBarOptions.BackColor = Color.White;
scrollBarOptions.BarColor = Color.Blue;
scrollBarOptions.BorderColor = Color.Navy;
scrollBarOptions.BarThickness = 15;
scrollBarOptions.XAxisScrollBarAlignment = ScrollBarAlignment.Far;
scrollBarOptions.XAxisScrollBarVisible = true;