Programming Considerations > Programming With Objects > Navigating the Object Hierarchy |
As with other Visual Basic objects, you can access a specific object by navigating its object hierarchy. For example, the following code retrieves the background color of the main body of the chart:
Dim BackColor As Long
BackColor = Chart2D1.ChartArea.Interior.BackgroundColor