XY Chart NET 3 Control Reference > Properties > Toolbar Property |
Use this property to return/set values that determines the chart's Toolbar characteristics. Toolbar uses the Toolbar Class set of properties for its characteristics.
[Visual Basic] Property Toolbar() As C_Toolbar |
[C#] XYChartNet.XYChartNETCtl.C_Toolbar XYChartNETCtl.Toolbar |
[C++] property XYChartNet::XYChartNETCtl::C_Toolbar ^ XYChartNet::XYChartNETCtl::Toolbar |
' XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form. Dim bValue As Boolean bValue = XYChartNETCtl1.Toolbar.Visible 'Get Toolbar's visible setting XYChartNETCtl1.Toolbar.Visible = True 'Display the Toolbar XYChartNETCtl1.Toolbar.Visible = False 'Do not display the Toolbar With XYChartNETCtl1.Toolbar.Buttons .CrosshairsVisible = True 'Display the Crosshairs button .ZoomVisible = True 'Display the Zoom in/out and Zoom out all buttons .PanVisible = True 'Display the Pan button .ExportDataVisible = False 'Do not display the Export Data button .SaveImageVisible = False 'Do not display the Save Image button .PrintVisible = True 'Display the Print Chart button End With XYChartNETCtl1.Refresh 'Refresh required to update chart with changes made
// XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form. XYChartNETCtl1.Toolbar.Visible = true; XYChartNETCtl1.Toolbar.BackColor = Color.LightBlue; XYChartNETCtl1.Toolbar.Dock = XYChartNet.XYChartNETCtl.PositionOptions.poTop; XYChartNETCtl1.Toolbar.Buttons.CrosshairsVisible = true; //Display the Crosshairs button XYChartNETCtl1.Toolbar.Buttons.ZoomVisible = true; //Display the Zoom in/out and Zoom out all buttons XYChartNETCtl1.Toolbar.Buttons.PanVisible = true; //Display the Pan button XYChartNETCtl1.Toolbar.Buttons.ExportDataVisible = false; //Do not display the Export Data button XYChartNETCtl1.Toolbar.Buttons.SaveImageVisible = false; //Do not display the Save Image button XYChartNETCtl1.Toolbar.Buttons.PrintVisible = true; //Display the Print Chart button XYChartNETCtl1.Refresh(); //Refresh required to update chart with changes made
// XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form. XYChartNETCtl1->Toolbar->Visible = true; XYChartNETCtl1->Toolbar->BackColor = Color::LightBlue; XYChartNETCtl1->Toolbar->Dock = XYChartNETCtl::PositionOptions::poTop; XYChartNETCtl1->Toolbar->Buttons->CrosshairsVisible = true; //Display the Crosshairs button XYChartNETCtl1->Toolbar->Buttons->ZoomVisible = true; //Display the Zoom in/out and Zoom out all buttons XYChartNETCtl1->Toolbar->Buttons->PanVisible = true; //Display the Pan button XYChartNETCtl1->Toolbar->Buttons->ExportDataVisible = false; //Do not display the Export Data button XYChartNETCtl1->Toolbar->Buttons->SaveImageVisible = false; //Do not display the Save Image button XYChartNETCtl1->Toolbar->Buttons->PrintVisible = true; //Display the Print Chart button XYChartNETCtl1->Refresh(); //Refresh required to update chart with changes made