ContextMenu::Count property
The Count property returns the number of MenuItem objects that are included in the ContextMenu object. This property is read-only.
Syntax
Property Count As Long
Property value
The number of MenuItem objects contained in this context menu.
Examples
' Retrieve the item count of the ContextMenu object.
Dim nCount As Long
nCount = objCtxMenu.Count
Requirements
Minimum supported client |
Windows Vista |
Minimum supported server |
Windows Server 2008 |
Header |
|
IDL |
|
DLL |
|
IID |
IID_ContextMenu is defined as DAB39CE0-25E6-4E07-8362-BA9C95706545 |