Click or drag to resize
MacroRuleTreeGetRuleText Method (MacroRuleTree, Boolean, FuncObject, Object)
Returns rule as a human readable sentence.

Namespace: CMS.MacroEngine
Assembly: CMS.MacroEngine (in CMS.MacroEngine.dll) Version: 8.2.23
Syntax
C#
public static string GetRuleText(
	MacroRuleTree rule,
	bool includingMarkup = false,
	Func<Object, Object> valueTransformation = null
)

Parameters

rule
Type: CMS.MacroEngineMacroRuleTree
Rule to render
includingMarkup (Optional)
Type: SystemBoolean
If true, rule is formatted using HTML markup
valueTransformation (Optional)
Type: SystemFuncObject, Object
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: String
See Also