DIAdem Help

Collection: 2DAxisYAxisList

  • Updated2024-09-12
  • 1 minute(s) read

Collection: 2DAxisYAxisList

Collection of all 2DAxisY objects in DIAdem REPORT. Use the 2DAxisYAxisList collection to access an individual y-axis in a 2D axis system in DIAdem REPORT. The first object of the 2DAxisYAxisList collection is identical with the 2DAxisY object.

The following example displays the horizontal offset and the names of all y-axes:

VBScriptPython

 

Dim oMyReportObj, oMyReportObjects, oMySubObjects, i, sOutput
sOutput = ""
Set oMyReportObjects = Report.ActiveSheet.Objects
For Each oMyReportObj in oMyReportObjects
  If oMyReportObj.ObjectType = eReportObject2DAxisSystem Then
    Set oMySubObjects = oMyReportObj.YAxisList
    For i = 1 to oMySubObjects.Count
      sOutput = sOutput & "Horizontal offset: " & oMySubObjects.Item(i).OffsetHorizontal & vbTab & _
                "Axis name: " & oMySubObjects.Item(i).Name & vbCrLf
    Next
  End If
Next
Call MsgBoxDisp(sOutput)

Properties

Count

Methods

Add | Exists | Item | Remove | RemoveAll

Returned From

2DAxisSystem.YAxisList