This document is archived and information here might be outdated.  Recommended version.


ICustomizeDialog.MenusCategory Property (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Controls)  

ICustomizeDialog.MenusCategory Property

The GUID of the component category used for menu definitions.

[Visual Basic .NET]
Public Property MenusCategory As String
[C#]
public string MenusCategory {get; set;}
[C++]
HRESULT get_MenusCategory(
  System.String* pVal
);
[C++]
HRESULT put_MenusCategory(
  BSTR pVal
);
[C++]

Parameters pVal [out, retval]
pVal is a parameter of type BSTR* pVal [in]
pVal is a parameter of type BSTR

Product Availability

Available with ArcGIS Engine.

Description

The guid of the component category used by the CustomizeDialog to read IMenuDef objects. By default the MenusCategory is set to the "ESRI Controls Menus" category:

"{B7D74382-06A8-483F-8FE5-6FB08FAA356A}"

Set the MenusCategory to a valid guid of your own component category in order for the CustomizeDialog to pick up your own custom menus rather than the default control menus. The StartDialog method will extract all valid menus from this component category.

Errors Returned

1041 800a0411: Customize dialog does not have valid component categories 

See Also

ICustomizeDialog Interface