Scrollbars Property

Use this property to return/set values that determines the chart's horizontal and vertical scrollbar characteristics.  Unless its visible property is set to FALSE, the horizontal and vertical scrollbars are displayed when a zoom-in occurs (see Toolbar).

Scrollbars uses the Scrollbar Class set of properties for its characteristics.

[Visual Basic]
Property Scrollbars() As C_Scrollbar
[C#]
XYChartNet.XYChartNETCtl.C_Scrollbar XYChartNETCtl.Scrollbars
[C++]
__property XYChartNet::XYChartNETCtl::C_Scrollbar __gc *XYChartNet::XYChartNETCtl::Scrollbars

Examples

XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form.

[Visual Basic]
Dim bValue As Boolean
bValue = XYChartNETCtl1.Scrollbars.HorizontalVisible  'Get horizontal scrollbar visible setting
bValue = XYChartNETCtl1.Scrollbars.VerticalVisible    'Get vertical scrollbar visible setting

XYChartNETCtl1.Scrollbars.HorizontalVisible = True    'Display the horizontal scrollbar
XYChartNETCtl1.Scrollbars.VerticalVisible = False     'Do not display the vertical scrollbar

XYChartNETCtl1.Refresh    'Refresh required to update chart with changes made

[C#]
XYChartNETCtl1.Scrollbars.HorizontalVisible = true;  //Display the horizontal scrollbar
XYChartNETCtl1.Scrollbars.VerticalVisible = false;   //Do not display the vertical scrollbar

XYChartNETCtl1.Refresh();  //Refresh required to update chart with changes made

[C++]
XYChartNETCtl1->Scrollbars->HorizontalVisible = true;  //Display the horizontal scrollbar
XYChartNETCtl1->Scrollbars->VerticalVisible = false;   //Do not display the vertical scrollbar

XYChartNETCtl1.Refresh();  //Refresh required to update chart with changes made

See Also

Properties