Skip to main content
All docs
V25.1
  • TdxAICommandList.Add(string,Boolean) Method

    Adds the specified AI-powered command to the collection.

    Declaration

    function Add(const AID: string; AAvailable: Boolean = True): Integer; overload;

    Parameters

    Name Type Description
    AID string

    The target AI command identifier.

    AAvailable Boolean

    Optional. Specifies if the added command is available to users:

    True
    Default. This option enables all UI elements (and other options, such as a dedicated keystroke) associated with the command.
    False
    The command is unavailable and all associated UI elements are disabled.

    The AAvailable parameter value initializes the Available property for the added command.

    Returns

    Type Description
    Integer

    The added command’s index in the collection.

    Remarks

    Call the Add function to add an individual AI-powered command to the end of the collection.

    To remove individual AI commands, call Delete and Remove methods.

    See Also