Chart Control
The Chart control is a chart object that exposes events. When you add a chart to a worksheet, Visual Studio creates a Chart object that you can program against directly without having to traverse the Microsoft Office Excel object model.
Applies to: The information in this topic applies to document-level projects and VSTO add-in projects for Excel. For more information, see Features Available by Office Application and Project Type.
You can add Chart controls to a Microsoft Office Excel worksheet at design time or at run time in a document-level project.
You can add Chart controls to a worksheet at run time in a VSTO Add-in. For more information, see How to: Add Chart Controls to Worksheets.
|
All formatting that can be applied to a Microsoft.Office.Interop.Excel.Chart can also be applied to a Microsoft.Office.Tools.Excel.Chart control. This includes borders, fonts, chart type, gridlines, legend, and data labels.
The following events are available for the Chart control:
Office Development Samples and Walkthroughs
Extending Word Documents and Excel Workbooks in VSTO Add-ins at Run Time
Controls on Office Documents
Adding Controls to Office Documents at Run Time
Automating Excel by Using Extended Objects
How to: Add Chart Controls to Worksheets
Binding Data to Controls in Office Solutions
Programmatic Limitations of Host Items and Host Controls