New to Telerik Document Processing? Start a free 30-day trial

Trim

Class

Removes extra spaces from text, leaving only single spaces between words; implements the TRIM text function.

Definition

Constructors

Initializes a new instance that removes extra spaces from text, leaving only single spaces between words.

C#
public Trim()

Fields

The name of the function.

C#
public static readonly string FunctionName

Properties

Gets metadata about the function including its arguments and category.

C#
public override FunctionInfo FunctionInfo { get; }
Property Value:

The function info as FunctionInfo.

Overrides: FunctionBase.FunctionInfo

Gets the function name used in formulas.

C#
public override string Name { get; }
Property Value:

The name as String.

Overrides: FunctionBase.Name

Methods

Evaluates the TRIM function with the provided arguments and returns the text with extra spaces removed.

C#
protected override RadExpression EvaluateOverride(FunctionEvaluationContext<string> context)
Parameters:contextFunctionEvaluationContext<string>Returns:

RadExpression

Functions result as RadExpression.

Overrides: FunctionWithSameTypeArguments<string>.EvaluateOverride(FunctionEvaluationContext<string>)