Type | Description | |||
Boolean | A boolean expression that indicates whether the source is a separator item. |
The Separator item can't be selected. Use the Add method to insert a separator item. Use the Separator property to divide group of items in the same submenu. use the SubMenu property to access the item's sub menu. Use the Popup property to specify whether the item hosts a sub menu. Use the Separator property to make a regular item a separator item, and reverse.
The following VB sample adds a separator item to a submenu :
With ExMenu1.Item(10).SubMenu .Add "", EXMENULibCtl.Separator End With
The following C++ sample adds a separator item to a submenu :
COleVariant vtMissing; V_VT( &vtMissing ) = VT_ERROR; m_menu.GetItem( COleVariant( (long)10 ) ).GetSubMenu().Add( "", COleVariant( long(1) /*Separator*/ ), vtMissing );
The following VB.NET sample adds a separator item to a submenu :
With AxExMenu1.item(10).SubMenu .Add("", EXMENULib.ItemTypeEnum.Separator) End With
The following C# sample adds a separator item to a submenu :
axExMenu1[10].SubMenu.Add("", EXMENULib.ItemTypeEnum.Separator, null);
The following VFP sample adds a separator item to a submenu :
With thisform.ExMenu1.Item(10).SubMenu .Add("", 1) && Separator EndWith