corelibraries-devexpress-dot-xtracharts-dot-scrollbaroptions-4996a0bd.md
Gets or sets the border color of scroll bars.
Namespace : DevExpress.XtraCharts
Assembly : DevExpress.XtraCharts.v25.2.dll
NuGet Package : DevExpress.Charts
public Color BorderColor { get; set; }
Public Property BorderColor As Color
| Type | Description |
|---|---|
| Color |
A Color value which represents the border color of scroll bars.
|
You can access this nested property as listed below:
| Object Type | Path to BorderColor |
|---|---|
| XYDiagramPaneBase |
.ScrollBarOptions .BorderColor
|
A Scroll bar’s appearance is determined by its ScrollBarOptions.BackColor, ScrollBarOptions.BarColor, BorderColor and ScrollBarOptions.BarThickness properties.
Note
If the BorderColor property is set to Empty, the border color is obtained from the appearance settings (a chart’s appearance is specified via its ChartControl.AppearanceName property).
The following images demonstrate the BorderColor property in action.
|
BorderColor isn’t defined
(the default value)
|
BorderColor = Color.Red
| | --- | --- | |
|
|
For more information on customizing the scroll bars, refer to Panes.
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;
Dim scrollBarOptions As 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
See Also