Click or drag to resize
MacroElement Class
Macro expression element. Lexical analysis of the K# expression.
Inheritance Hierarchy
SystemObject
  CMS.MacroEngineMacroElement

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

The MacroElement type exposes the following members.

Constructors
  NameDescription
Public methodMacroElement
Constructor.
Top
Methods
  NameDescription
Public methodStatic memberEscapeSpecialChars
Escapes special characters in the string to create a string literal.
Public methodStatic memberIsBoolConst
Returns true if the given string is a boolean constant "true" or "false".
Public methodStatic memberIsOperatorChar
Returns true if the character is operator character.
Public methodStatic memberIsValidOperator
Returns true if the operator is valid.
Public methodStatic memberIsWordOperator
Returns true if the given string is a word operator.
Public methodStatic memberParseExpression(String)
Parses the expression.
Public methodStatic memberParseExpression(String, Boolean)
Parses the expression.
Public methodToString
Returns the expression of the element.
(Overrides ObjectToString.)
Public methodStatic memberUnescapeSpecialChars
Unescapes special characters in the string constant.
Top
Extension Methods
  NameDescription
Public Extension MethodAsValue
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.)
Public Extension MethodGetAPIString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodGetString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodToBoolean
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDateTime
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDouble
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToGuid
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToInteger
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToString
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.)
Top
Properties
  NameDescription
Public propertyExpression
Element expression (as was parsed).
Public propertyStartIndex
Index of the expression start in the source expression.
Public propertyType
Element type.
Public propertyValue
Element value (of the element type).
Top
See Also