The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

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.