MacroRuleTree MembersKentico 8.0 API Reference
The MacroRuleTree type exposes the following members.
Constructors

  NameDescription
Public methodMacroRuleTree
Back to Top
Methods

  NameDescription
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 methodOnlineEquals
Determines whether the specified OnlineObject is equal to the current OnlineObject.
(Inherited from OnlineObject.)
Protected methodOnlineFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from OnlineObject.)
Public methodGetCondition
Returns the condition in K# representing this rule.
Public methodOnlineGetHashCode
Serves as a hash function for a particular type.
(Inherited from OnlineObject.)
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, Func Object, Object )
Returns rule as a human readable sentence.
Public methodStatic memberGetRuleText(String, Boolean, Boolean, Func Object, 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 methodOnlineGetType
Gets the OnlineType of the current instance.
(Inherited from OnlineObject.)
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.
Protected methodOnlineMemberwiseClone
Creates a shallow copy of the current OnlineObject.
(Inherited from OnlineObject.)
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 methodOnlineToString
Returns a string that represents the current object.
(Inherited from OnlineObject.)
Public methodUnindent
Unindents the node with one level.
Public methodValidateParameters
Returns list of rules which contain required parameters with empty value.
Back to Top
Extension Methods

  NameDescription
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.)
Back to Top
Properties

  NameDescription
Public propertyHasPreviousSibling
Returns true if group has a previous sibling node.
Public propertyChildren
Gets or sets the child rules.
Public propertyIDPath
Returns IDPath of the group.
Public propertyIsLeaf
Returns true if group is a leaf (expression).
Public propertyLevel
Returns level of the group.
Public propertyOperator
Gets or sets operator of the rule.
Public propertyParameters
Gets or sets the parameters of the rule (null for internal nodes).
Public propertyParent
Gets or sets the parent.
Public propertyPosition
Gets or sets the relative position of the rule within the parent group.
Public propertyRuleCondition
Gets or sets the associated rule K# condition.
Public propertyRuleName
Gets or sets the associated rule name.
Public propertyRuleParameters
Gets or sets the associated rule parameters xml definition.
Public propertyRuleText
Gets or sets the associated rule text.
Back to Top
See Also