property CustomView.Object as Object
Gets the control that defines the custom view.

TypeDescription
Object An object being created once the ControlID property is set. For instance, if the ControlID property is set to "exontrol.graph", the type of the Object will be of the EXGRAPHLib.Graph type.
The Object property gets the control that defines the custom view. The Object property returns Nothing if the creation of the control based on the ControlID and License properties fails. The OleEvent event occurs whenever the custom view fires an event. The ViewChange event is triggered whenever there is a change in the control's view. The Visible property switches the view between the pivot table and the graph/custom view.

Please note the following for the /NET version:

The following code, shows how you can enable the control's graph capabilities using the eXGraph control. The code also demonstrates how you can use IntelliSense for the internally created control.

Private g As EXGRAPHLib.Graph

Private Sub Form_Load()
    With Pivot1.CustomView
        .ControlID = "exontrol.graph"
        Set g = .Object
        With g
            .SerieType = "area"
            .AutoFit = True
        End With
    End With
End Sub

To define the EXGRAPHLib.Graph type, you need to include a reference to the eXGraph control. This can be done by going to Project > References, then selecting "ExGraph 1.0 Control Library".

The following code changes the direction and style of the displayed series (once the ViewChange event occurs):

Private Sub Pivot1_ViewChange()
    With g
        .BeginUpdate
        .MultiColorSerie = .SerieType = "Pie"
        With .Series
            For i = 0 To .Count - 1
                .Item(i).Vertical = True
                .Item(i).Style = exSpline
            Next
        End With
        .EndUpdate
    End With
End Sub

The following screenshot shows the result of the code: