MacroRuleTreeGetRuleText Method (MacroRuleTree, Boolean, FuncObject, Object) |
Returns rule as a human readable sentence.
Namespace: CMS.MacroEngineAssembly: CMS.MacroEngine (in CMS.MacroEngine.dll) Version: 10.0.0
Syntaxpublic 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