Software Developer's Kit - ChemDraw

Send comments on this topic
Menus Property
See Also 


Member of ChemDraw Control.MenuBar.

Returns the collection of menus of the menu bar.

Property type

Read-only property


Visual Basic
Public Property Menus() As Object

Return Type



Private Sub cmdCommand_click()
   'Declares variables 
    Dim myMenu As ChemDrawControl11Ctl.Menu
    Dim myMenus As ChemDrawControl11Ctl.Menus
    Dim myMenuBar As ChemDrawControl11Ctl.MenuBar
    Dim myMenuBars As ChemDrawControl11Ctl.MenuBars
    Dim myMenuItem As ChemDrawControl11Ctl.MenuItem
    Dim myMenuItems As ChemDrawControl11Ctl.MenuItems
   'Returns number of MENU BARS 
    Text1.Text = "menuBars " & ctlChemDraw.Application.MenuBars.Count
    Set myMenuBar = ctlChemDraw.Application.MenuBars.Item(1)  
   'Returns menu bar properties 
    Text2.Text = myMenuBar.Application 
    Text2.Text = myMenuBar.Index
    Text3.Text = "Menus: " & myMenuBar.Menus.Count
End Sub

See Also