TRY NEW VERSION

Try now New API BETA

Try out the new view and capabilities of the API documentation

START

PROPER

PROPER(arg1) → { string }

Converts a text string to proper case: the first letter in each word to uppercase, and all other letters to lowercase.

Parameters:

Name Type Description
arg1 string

The text enclosed in quotation marks, a formula that returns text, or a reference to a cell containing text to partially capitalize.

Returns:

Type
string

Example

Copy code
builder.CreateFile("xlsx");
var oWorksheet = Api.GetActiveSheet();
var oFunction = Api.GetWorksheetFunction();
oWorksheet.GetRange("A1").SetValue(oFunction.PROPER("dAVID CONNOR"));
builder.SaveFile("xlsx", "PROPER.xlsx");
builder.CloseFile();

Resulting document