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


ICustomizeDialog.CommandsCategory Property (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Controls)  

ICustomizeDialog.CommandsCategory Property

The GUID of the component category used for commands.

[Visual Basic .NET]
Public Property CommandsCategory As String
[C#]
public string CommandsCategory {get; set;}
[C++]
HRESULT get_CommandsCategory(
  BSTR* pVal
);
[C++]
HRESULT put_CommandsCategory(
  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 ICommand objects. By default the CommandsCategory is set to the "ESRI Controls Commands" category:

"{B284D891-22EE-4F12-A0A9-B1DDED9197F4}"

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

Errors Returned

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

See Also

ICustomizeDialog Interface