function GetSelection(): ApiRange
Returns an object that represents the selected range.
ApiRange
var oWorksheet = Api.GetActiveSheet(); Api.GetSelection().SetValue("selected");