TRY NEW VERSION

Try now New API BETA

Try out the new view and capabilities of the API documentation

START

Select

Select()

Selects the current range.

Parameters:

This method doesn't have any parameters.

Returns:

This method doesn't return any data.

Example

Copy code
builder.CreateFile("xlsx");
var oWorksheet = Api.GetActiveSheet();
var oRange = oWorksheet.GetRange("A1:C1");
oRange.SetValue("1");
oRange.Select();
Api.GetSelection().SetValue("selected");
builder.SaveFile("xlsx", "Select.xlsx");
builder.CloseFile();

Resulting document