.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
Row

Worksheet.SetSelectedRanges Method

Name Parameters Description
SetSelectedRanges(IList<CellRange>) ranges Sets cell ranges selected in the worksheet.
SetSelectedRanges(IList<CellRange>, Boolean) ranges, expandToMergedCellsSize Selects cell ranges in the worksheet and specifies whether the selection expands to fit merged cells.