Collection: UsedBars
- Updated2024-09-12
- 1 minute(s) read
(Collections | DataPortal | Panel | Shell) > Collection: UsedBars
Collection: UsedBars
Collection of all bars used in a DIAdem panel or in the DIAdem main window. The bars that a panel or the DIAdem main window contain are references to bars of the Bars collection. To access an individual bar in a script use the Item method or enter the index or the name in parentheses.
VBScript | Python |
Dim oMyBar For each oMyBar in BarManager.Shell.UsedBars Call MsgBoxDisp("Name: " & oMyBar.ID) Next
The following example displays the names of all DIAdem panels and the number of bars:
VBScript | Python |
Dim oMyPanel For each oMyPanel in BarManager.Panels Call MsgBoxDisp(oMyPanel.ID & ", " & oMyPanel.UsedBars.Count) Next