Click or drag to resize
MacroRuleTree Methods

The MacroRuleTree type exposes the following members.

Methods
  NameDescription
Public methodAccept
Accepts an action that gets executed on the whole tree structure.
Public methodAddRule
Adds a new rule as a child of current node. Inserts the rule to the specified position.
Public methodAutoIndent
Performs the autoindentation of the expression (according to priority of 'or' and 'and' operators).
Public methodGetCondition
Returns the condition in K# representing this rule.
Public methodStatic memberGetParameterText
Processes the text of parameter (handles multivalue parameters separated with new line).
Public methodGetRoot
Returns the root of the rule tree.
Public methodStatic memberGetRuleCondition
Returns rule as a human readable sentence. If the expression is Rule(...) method than it uses XML for the rule, otherwise returns expression as it is.
Public methodStatic memberGetRuleText(MacroRuleTree, Boolean, FuncObject, Object)
Returns rule as a human readable sentence.
Public methodStatic memberGetRuleText(String, Boolean, Boolean, FuncObject, Object)
Returns rule as a human readable sentence. If the expression is Rule(...) method than it uses XML for the rule, otherwise returns expression as it is.
Public methodGetXML
Returns xml of the rule designer (to store the layout and parameters).
Protected methodGetXMLInternal
Returns xml of the rule designer (to store the layout and parameters).
Public methodIndent
Indents the node with one level.
Public methodLoadFromXml
Loads MacroRuleTree from xml definition.
Public methodMoveNode
Moves the group to given location.
Public methodStatic memberRemoveBrackets
Removes brackets which are not needed.
Public methodRemoveNode(Int32)
Adds given group as a new child.
Public methodRemoveNode(Int32, Boolean)
Adds given group as a new child.
Public methodResetPositions
Sets correct positions according to current state.
Public methodSetParameterValue
Sets the parameter value.
Public methodUnindent
Unindents the node with one level.
Public methodValidateParameters
Returns list of rules which contain required parameters with empty value.
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
See Also