MacroRuleTree GetRuleText Method (MacroRuleTree, Boolean, Func Object, Object )Kentico 8.0 API Reference
Returns rule as a human readable sentence.

Namespace: CMS.MacroEngine
Assembly: CMS.MacroEngine (in CMS.MacroEngine.dll) Version: 8.0.0.0 (8.0.5239.26125)

Parameters

rule
Type: CMS.MacroEngine MacroRuleTree
Rule to render
includingMarkup (Optional)
Type: OnlineSystem Boolean
If true, rule is formatted using HTML markup
valueTransformation (Optional)
Type: OnlineSystem Func OnlineObject, OnlineObject 
Transformation function which is used to further modify the displayed parameter value (used for example to add TimeZones support for date time parameter values)

Return Value

Type: OnlineString
See Also