The LegendItem object provides information about a curve in a 2D axis system or in a contour display, in DIAdem VIEW. In the legends, DIAdem displays channel properties, values at cursor positions, free text, or a Calculator expression.
The following example displays a name for each legend entry. If the DisplayObjType property is a CurveChart2D type, the example refers to the legend of a 2D axis system. If the DisplayObjType property is a Contour type, the example refers to the legend of a contour display.
Dim oMyLegends: Set oMyLegends = View.ActiveSheet.ActiveArea.DisplayObj.LegendItems Dim oMyLegendItem For Each oMyLegendItem in oMyLegends Call MsgBoxDisp(oMyLegendItem.Name) Next