Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Graphs - property of object tvTrend

Description:
Returns the nIndex-th object of the tvGraph type. Returns only the objects that were constructed by the designer, for example, by calling the AddGraph method, it doesn't return the GraphDefault basic object. If the object specified by the nIndex parameter doesn't exist, the property returns the value Nothing (see example). Nothing value can be tested by VBScript Is operator.
Syntax:
Graphs(nIndex As Long) As Object
Calling:
Set oGraph = oTView.Graphs(nIndex)
Parameters:
nIndex(Long) Index to the array of the tvGraph type objects constructed by the designer
Note:
Property access for read only.
See also:
Example:
Setting the Color property (trend line color) of the 0-th tvGraph type object constructed by the designer in the trend with the name "t1".
Dim oGraph
Set oGraph = oTView.Trends("t1").Graphs(0)
If Not oGraph Is Nothing Then
  oGraph.Color = "#ff0000" 'color setting by RGB String
Else
  ' .. error
End If
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice