ArcGIS Pro 3.6 API Reference Guide
ArcGIS.Desktop.Core Namespace / CoreModule Class
Members Example

In This Topic
    CoreModule Class
    In This Topic
    Represents the core module, which provides access to the current project
    Object Model
    CoreModule ClassProject Class
    Syntax
    Example
    Suggested command options in CommandSearch when a tab is activated.
    //In the module class..
    public override string[] GetSuggestedCMDIDs(string activeTabID)
    {
      //Return the static list of daml ids you want to be the (suggested) 
      //defaults relevant to the given tab. It can be none, some, or all of the
      //commands associated with the activeTabID.
      //In this example, there are two tabs. This example arbitrarily
      //identifies just one command on each tab to be a default to show in the
      //command search list (when _that_ particular tab is active)
      switch (activeTabID)
      {
        case "CommandSearch_Example_Tab1":
          return new string[] { "CommandSearch_Example_Button2" };
        case "CommandSearch_Example_Tab2":
          return new string[] { "CommandSearch_Example_Button4" };
      }
      return new string[] { "" };
    }
    Inheritance Hierarchy
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.0 or higher.
    See Also