Type | Description | |||
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. |
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: