跳到主要内容

CLEAN

Removes all the nonprintable characters from the text.

Syntax

expression.CLEAN(arg1);

expression - A variable that represents a ApiWorksheetFunction class.

Parameters

NameRequired/OptionalData typeDefaultDescription
arg1RequiredApiRange | ApiName | stringA string from which nonprintable characters will be removed.

Returns

string

Example

let worksheet = Api.GetActiveSheet();
let func = Api.GetWorksheetFunction();
worksheet.GetRange("A1").SetValue(func.CLEAN("\ntext"));