Click or drag to resize
MacroRuleTreeGetParameterText Method
Processes the text of parameter (handles multivalue parameters separated with new line).

Namespace: CMS.MacroEngine
Assembly: CMS.MacroEngine (in CMS.MacroEngine.dll) Version: 11.0.0
Syntax
C#
public static string GetParameterText(
	string paramText,
	bool includingMarkup,
	string cssClass = null,
	string valueType = "text",
	Func<Object, Object> valueTransformation = null
)

Parameters

paramText
Type: SystemString
Parameter text
includingMarkup
Type: SystemBoolean
If true, rule is formatted using HTML markup
cssClass (Optional)
Type: SystemString
Class which will be used (used only when includingMarkup is true), can be null
valueType (Optional)
Type: SystemString
Type of the parameter text value
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