OPC Studio User's Guide and Reference
CreateDefaultMenuItem Method



OpcLabs.BaseLibForms Assembly > OpcLabs.BaseLib.Forms.Browsing.Generalized Namespace > BrowseControl Class : CreateDefaultMenuItem Method
The node path of the node.

The value of this parameter cannot be null (Nothing in Visual Basic).

Returns the default menu item to be displayed on a given node.
Syntax
'Declaration
 
<CanBeNullAttribute()>
Protected Overridable Function CreateDefaultMenuItem( _
   ByVal nodePath As IEnumerable(Of Object) _
) As ToolStripItem
'Usage
 
Dim instance As BrowseControl
Dim nodePath As IEnumerable(Of Object)
Dim value As ToolStripItem
 
value = instance.CreateDefaultMenuItem(nodePath)
[CanBeNull()]
protected virtual ToolStripItem CreateDefaultMenuItem( 
   IEnumerable<object> nodePath
)
[CanBeNull()]
protected:
virtual ToolStripItem^ CreateDefaultMenuItem( 
   IEnumerable<Object^>^ nodePath
) 

Parameters

nodePath
The node path of the node.

The value of this parameter cannot be null (Nothing in Visual Basic).

Return Value

The default menu item, or null if none should be displayed.

This method can return null (Nothing in Visual Basic).

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also