This class represents the scrollbar of a chart axis.
AxisScrollBar class represent axis scroolbar. It is exposed as ScrollBar property of the Axis class. It contains scrollbar appearance properties and drawing methods.
Visual Basic (Declaration) | |
---|---|
Public Class AxisScrollBar |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public class AxisScrollBar |
This class is exposed as the ScrollBar property of the Axis class.
Scrollbars allow the end user to scroll through data when a subset of data is being displayed. A subset of data is referred to as a view, and is represented by the AxisDataView class.
Scrollbars are only shown when zooming occurs. In other words, even if a scrollbar is enabled it will only be visible when a view is being displayed.
For a listing of the elements that constitute a scrollbar refer to the figure below.
IMPORTANT: To fix the position of scrollbars the plotting area position of a chart area must not be set to "Auto". To explicitly set the plotting area position use the InnerPlotPosition property.
To immediately display scrollbars when a chart is first displayed use the AxisDataView class properties/methods so that the a view is initially displayed to end users.
The background color, button color and width of scrollbars can be set using this class.
Note that there are two main types of scrolling: large scrolling, which occurs when the end user clicks in the background of a scrollbar (i.e. that part of a scrollbar not covered by the thumb); and small scrolling, which occurs when the end user clicks on a left/right or up/down button. To control the large scrolling size use the Size property of the View object. To set the small scrolling size use the ScrollLineSize property of the AxisDataView class, respectively.
System.Object
Dundas.Charting.WinControl.AxisScrollBar
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family