Collection: 2DBackgroundSegments

DIAdem 2018 Help


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

DOWNLOAD (Windows Only)


DIAdem 2012 Help
DIAdem 2014 Help
DIAdem 2015 Help
DIAdem 2017 Help
DIAdem 2018 Help
DIAdem 2019 Help

Collection of all 2DBackgroundSegment objects in DIAdem REPORT. Use the 2DBackgroundSegments collection to access a single background element in DIAdem REPORT.

The following example displays the names of the 2D axis systems and the number of background segments in 2D axis systems. Then the example displays the x-channels and the y-channels of the background segments:

Dim oMyReportObj, oMyReportObjects, oMyBackgroundSegment, sOutput
sOutput = ""
Set oMyReportObjects = Report.ActiveSheet.Objects
For Each oMyReportObj in oMyReportObjects
  If oMyReportObj.ObjectType = eReportObject2DAxisSystem Then
    Call MsgBoxDisp("Object name: " & oMyReportObj.Name & _
    vbCrLf & "Number of background segments: " & oMyReportObj.Settings.BackgroundSegments.Count)
    For Each oMyBackgroundSegment in oMyReportObj.Settings.BackgroundSegments
      sOutput = sOutput & "X-channel: " & oMyBackgroundSegment.XChannel.Reference & vbTab & _
                "y-channel: " & oMyBackgroundSegment.YChannel.Reference & vbCrLf
    Next
  End If
Next
Call MsgBoxDisp(sOutput)

Properties

Count

Methods

Add | Item | RemoveAll

WAS THIS ARTICLE HELPFUL?

Not Helpful