View::ScopeNodeContextMenu property

The ScopeNodeContextMenu property returns the context menu for the specified node. This property is read-only.

Syntax


Property ScopeNodeContextMenu( _
  [ ByVal ScopeNode As Variant ] _
) As ContextMenu

Property value

The ContextMenu object for the view's specified node.

Examples


' This code retrieves the context menu for
' the Document's RootNode.
Dim var1 As Variant
Set var1 = objDoc.RootNode
 
Dim objCtxMenu As MMC20.ContextMenu
Set objCtxMenu = objView.ScopeNodeContextMenu(var1)
 
' Use the ContextMenu. This code displays
' the ContextMenu.Count property.
MsgBox ("objCtxMenu.Count = " & objCtxMenu.Count)

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

MMCObj.h

IDL

MMCObj.idl

DLL

Mmc.exe

IID

IID_View is defined as 6EFC2DA2-B38C-457E-9ABB-ED2D189B8C38

See also

View.SelectionContextMenu
ContextMenu object
Document.ScopeNamespace

 

 

Show: