UIMacroManager.AddModule
Description:
Adds a MacroModule to the application or document.
Adds a MacroModule to the application or document.
Remarks:
Note: document-level modules will not be saved to the document until the document is saved. Thus this operation is not undoable and does not require an open transaction even for document-level modules.
Note: document-level modules will not be saved to the document until the document is saved. Thus this operation is not undoable and does not require an open transaction even for document-level modules.
public MacroModule AddModule(
ModuleSettings moduleSettings,
MacroEnvironment environment
)
-
moduleSettingsThe module settings.
-
environmentThe module environment.
Return Value
The new module.
The new module.
-
Thrown when the module name is duplicated with the existing one, or the name is too long, or the name contains invalid identifier(s), such as include "#", "%", ... and key words in C# or VB.NET.
-
A non-optional argument was null
-
A value passed for an enumeration argument is not a member of that enumeration