Version

ResetSelection(SpreadsheetCellRange,SpreadsheetCell,Boolean) Method

Clears the current selection and uses the specified cell as the ActiveCell and specified range as the new selection.
Syntax
'Declaration
 
Public Overloads Function ResetSelection( _
   ByVal range As SpreadsheetCellRange, _
   ByVal activeCell As SpreadsheetCell, _
   Optional ByVal extendRangeForMergedCells As Boolean _
) As Boolean

Parameters

range
The new selection range
activeCell
The cell to use for the ActiveCell. This must be within the specified range.
extendRangeForMergedCells
True to adjust the range such that it contains any intersecting merged cells; otherwise false to use the range as it is.
Exceptions
ExceptionDescription
System.ArgumentExceptionThe activeCell must be within the specified range.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also