Method CreateMacro
CreateMacro(DIMacroFile?, uint, MacroKind, LazyEncodedString, LazyEncodedString)
Create a macro
public DIMacro CreateMacro(DIMacroFile? parentFile, uint line, MacroKind kind, LazyEncodedString name, LazyEncodedString value)
Parameters
parentFile
DIMacroFileParent file containing the macro
line
uintSource line number where the macro is defined
kind
MacroKindId of macro
name
LazyEncodedStringName of the macro
value
LazyEncodedStringValue of the macro (use String.Empty for Undefine)
Returns
- DIMacro
Newly created macro node