MenuGroup Constructor (String, String)
Initializes a new instance of the MenuGroup class that has the specified group name and display name.
Namespace: Microsoft.Windows.Design.Interaction
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Public Sub New ( _
groupName As String, _
displayName As String _
)
public MenuGroup(
string groupName,
string displayName
)
public:
MenuGroup(
String^ groupName,
String^ displayName
)
new :
groupName:string *
displayName:string -> MenuGroup
public function MenuGroup(
groupName : String,
displayName : String
)
Parameters
- groupName
Type: System.String
The name of the MenuGroup instance.
- displayName
Type: System.String
Localized text to display when HasDropDown equals true.
Remarks
MenuGroup creates either a submenu of menu items or a separator-delimited menu group.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.Windows.Design.Interaction Namespace
PrimarySelectionContextMenuProvider