Skip to main content
A newer version of this page is available. .

How to: Create a Rule

Follow the steps below to create a new rule for non-public enumerations:

  • Open the Editor | All Languages | Organize Members options page.

  • Click the Add Rule button to add a new rule.

  • Use the Move Up and Move Down buttons to change the rule's position.

  • Enter the rule name to the Rule name field on the right. In this case, the rule name is Non-Public Enumerations.

    RuleName

  • Configure grouping:

    • Set the Node kind item to Enum.

      NodeKind

    • Switch Kind to Visibility.

      KindVisibility

    • Focus the Node kind item.

      FocusNodeKind

    • Click the And button to create the And group.

      AndButton

    • Expand the newly-created And group and set the Visibility to Public.

      CustomizeAndGroup

    • Focus the Visibility item and click the Not button to create the Not group and put the Visibility (focused) item there.

      CreateNotGroup

    • Expand the Not group and check that you have the following filter.

      Config_OrgMem_Group

  • Configure sorting (optional) or leave it as is.

    SortingGroup

  • Click Apply and OK to save the changes and close the Organize Members window.

    SaveAndCloseWindow

  • Run Organize Members.

    Place the caret in a type declaration and select Organize Members from the menu.