DIAdem Help

Property: Width for LegendItem

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

Property: Width for LegendItem

Specifies the column width of a legend entry in a 2D axis system in DIAdem VIEW.

Object.Width
ObjectLegendItem
Object with this property
Object.WidthLongInteger with read and write access

The following example outputs a message with the column widths of all the legend entries in a 2D axis system. The DisplayObj must be a CurveChart2D type.

VBScriptPython

 

Dim oMyLegends, oMyLegendItem
Set oMyLegends = View.ActiveSheet.ActiveArea.DisplayObj.LegendItems
For Each oMyLegendItem in oMyLegends
  Call MsgBoxDisp("Width of LegendItem: " & oMyLegendItem.Width)
Next