The MacroRuleTree type exposes the following members.
Back to Top
Back to Top
Back to Top
Back to Top
Constructors
Name | Description | |
---|---|---|
MacroRuleTree |
Methods
Name | Description | |
---|---|---|
AddRule |
Adds a new rule as a child of current node. Inserts the rule to the specified position.
| |
AutoIndent |
Performs the autoindentation of the expression (according to priority of 'or' and 'and' operators).
| |
Equals | (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetCondition |
Returns the condition in K# representing this rule.
| |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetParameterText |
Processes the text of parameter (handles multivalue parameters separated with new line).
| |
GetRoot |
Returns the root of the rule tree.
| |
GetRuleCondition |
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.
| |
GetRuleText(MacroRuleTree, Boolean, Func Object, Object ) |
Returns rule as a human readable sentence.
| |
GetRuleText(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.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetXML |
Returns xml of the rule designer (to store the layout and parameters).
| |
GetXMLInternal |
Returns xml of the rule designer (to store the layout and parameters).
| |
Indent |
Indents the node with one level.
| |
LoadFromXml |
Loads MacroRuleTree from xml definition.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
MoveNode |
Moves the group to given location.
| |
RemoveBrackets |
Removes brackets which are not needed.
| |
RemoveNode(Int32) |
Adds given group as a new child.
| |
RemoveNode(Int32, Boolean) |
Adds given group as a new child.
| |
ResetPositions |
Sets correct positions according to current state.
| |
SetParameterValue |
Sets the parameter value.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
Unindent |
Unindents the node with one level.
| |
ValidateParameters |
Returns list of rules which contain required parameters with empty value.
|
Extension Methods
Name | Description | |
---|---|---|
GetAPIString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
GetString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
ToBoolean |
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToDateTime |
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToDouble |
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToGuid |
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToInteger |
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToString |
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.) |
Properties
Name | Description | |
---|---|---|
HasPreviousSibling |
Returns true if group has a previous sibling node.
| |
Children |
Gets or sets the child rules.
| |
IDPath |
Returns IDPath of the group.
| |
IsLeaf |
Returns true if group is a leaf (expression).
| |
Level |
Returns level of the group.
| |
Operator |
Gets or sets operator of the rule.
| |
Parameters |
Gets or sets the parameters of the rule (null for internal nodes).
| |
Parent |
Gets or sets the parent.
| |
Position |
Gets or sets the relative position of the rule within the parent group.
| |
RuleCondition |
Gets or sets the associated rule K# condition.
| |
RuleName |
Gets or sets the associated rule name.
| |
RuleParameters |
Gets or sets the associated rule parameters xml definition.
| |
RuleText |
Gets or sets the associated rule text.
|
See Also