NOA DebuggerNOA Debugger
  • v1.7.0
  • v1.6.1
  • v1.5.0
  • v1.4.0
  • v1.3.0
  • v1.2.0
  • v1.1.1
  • v1.0.0
Demo
Contact
Buy
  • 日本語
  • English
  • 日本語
  • English
  • 日本語
  • English
  • 日本語
  • English
  • 日本語
  • English
  • 日本語
  • English
  • 日本語
  • English
  • 日本語
  • English
  • v1.7.0
  • v1.6.1
  • v1.5.0
  • v1.4.0
  • v1.3.0
  • v1.2.0
  • v1.1.1
  • v1.0.0
Demo
Contact
Buy
  • 日本語
  • English
  • 日本語
  • English
  • 日本語
  • English
  • 日本語
  • English
  • 日本語
  • English
  • 日本語
  • English
  • 日本語
  • English
  • 日本語
  • English
  • CommandGroupAttribute

CommandGroupAttribute

public CommandGroupAttribute(string name)

public CommandGroupAttribute(string name, int order)

public CommandGroupAttribute(string name, bool isCollapsed)

public CommandGroupAttribute(string name, int order, bool isCollapsed)

Parameters

ParameterDescription
nameGroup name.
orderOrder of the group.
isCollapsedGroup collapsed state at startup.

Descriptions

Specifies the group that contains the command.

If name is not specified, it will be included in 'Others'.

order displays groups in order from the smallest specified value.

If not specified, groups follow the load order and are placed after groups that have a specified order.

isCollapsed specifies the group's collapsed state at app startup.

If true, the group is shown in a collapsed state, hiding the commands within the group.

If false or not specified, the group is shown in an expanded state, displaying the commands within the group.

If the user has toggled the group's expand/collapse at least once, that state is saved and takes precedence after restarting the app.

Note: order and isCollapsed are set per group. If specified multiple times for the same group, the last loaded value is applied.

It can be specified for both properties and methods.

The setting status will be displayed in the detail view.

#if NOA_DEBUGGER
using NoaDebugger;

public class DebugCommandSample : DebugCategoryBase
{
    [CommandGroup("Group1")]
    public int ExampleProperty
    {
        get;
        set;
    }

    // In this case, Group2 will be arranged before Group1 which has no specified order.
    [CommandGroup("Group2", 1)]
    public int ExampleProperty2
    {
        get;
        set;
    }

    // Since Group2 already has an order specified, there is no need to specify it again here.
    [CommandGroup("Group2")]
    public int ExampleProperty3
    {
        get;
        set;
    }

    // In this case, Group3 will be displayed collapsed at startup.
    [CommandGroup("Group3", true)]
    public int ExampleProperty4
    {
        get;
        set;
    }

    // Group3 already has isCollapsed=true set, so this property will also be collapsed and hidden at startup
    [CommandGroup("Group3")]
    public int ExampleProperty5
    {
        get;
        set;
    }
}
#endif