Click or drag to resize
MacroProcessingContext Class
Context for macro processing (context for parsing the text for macro expressions).
Inheritance Hierarchy
SystemObject
  CMS.MacroEngineMacroProcessingContext

Namespace: CMS.MacroEngine
Assembly: CMS.MacroEngine (in CMS.MacroEngine.dll) Version: 12.0.0
Syntax
C#
public class MacroProcessingContext

The MacroProcessingContext type exposes the following members.

Constructors
  NameDescription
Public methodMacroProcessingContext
Creates a new MacroProcessingContext instance
Top
Properties
  NameDescription
Public propertyBracketType
Type of the baracket - used for backward compatibility when macros could be nested '{(0)% %(0)}'
Public propertyExpression
Identified macro expression including all the parameters.
Public propertyIsOpenExpression
Indicates whether the expression is transformed open expression (condition, loop).
Public propertyMacroEnd
End of the macro (position after end bracket).
Public propertyMacroStart
Start position of the macro (position of starting bracket).
Public propertyMacroType
Type of the macro ($, %, #, etc.).
Public propertyReplacement
Replacement string passed to the macro handler.
Public propertySourceText
Text in which the macro was found.
Top
Methods
  NameDescription
Public methodGetOriginalExpression
Returns macro expression demarcated by macro start and macro end in entire source text
Public methodGetWholeMacroExpression
Returns the whole version of the expression created by concatenation of the parameters. The result is for example this: {(0)%test%(0)}.
Top
See Also