Get Started
Documentation

Select

Select()

Selects the object.

Example

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

Resulting document