Version

AddActiveCellRange(SpreadsheetCellRange,SpreadsheetCell,Boolean) Method

Adds a new cell range for the specified cell and makes it the active cell.
Syntax
'Declaration
 
Public Overloads Function AddActiveCellRange( _
   ByVal range As SpreadsheetCellRange, _
   ByVal activeCell As SpreadsheetCell, _
   Optional ByVal extendRangeForMergedCells As Boolean _
) As Boolean
public bool AddActiveCellRange( 
   SpreadsheetCellRange range,
   SpreadsheetCell activeCell,
   bool extendRangeForMergedCells
)

Parameters

range
The new range to add
activeCell
The new active cell for which a new selection will be added. This must be a cell within 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