Object: 2DAxisY

DIAdem 2018 Help


Edition Date: June 2018
Part Number: 370858P-01
View Product Info

DOWNLOAD (Windows Only)


DIAdem 2015 Help
DIAdem 2017 Help
DIAdem 2018 Help
DIAdem 2019 Help
DIAdem 2020 Help

The 2DAxisY object provides the y-axis for a 2D axis system in DIAdem REPORT. The 2DAxisY object is identical with the first element of the 2DAxisYAxisList collection.

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

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)

WAS THIS ARTICLE HELPFUL?

Not Helpful