Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Object: LegendItem

DIAdem 2011 Help

Edition Date: July 2011

Part Number: 370859J-01

»View Product Info

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

Properties

Format | Name | Title | Width

Returned From

LegendItems.Add | LegendItems.Item


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit