Version

WorksheetRegion Constructor

Initializes a new instance of the WorksheetRegion class.
Syntax
'Declaration
 
Public Function New( _
   ByVal worksheet As Worksheet, _
   ByVal firstRow As Integer, _
   ByVal firstColumn As Integer, _
   ByVal lastRow As Integer, _
   ByVal lastColumn As Integer _
)
public WorksheetRegion( 
   Worksheet worksheet,
   int firstRow,
   int firstColumn,
   int lastRow,
   int lastColumn
)

Parameters

worksheet
The worksheet on which the region resides.
firstRow
The index of the first row of the region.
firstColumn
The index of the first column of the region.
lastRow
The index of the last row of the region.
lastColumn
The index of the last row column of the region.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionworksheet is null.
System.InvalidOperationExceptionfirstRow is greater than lastRow or firstColumn is greater than lastColumn.
System.ArgumentOutOfRangeException Any row or column indices specified are outside the valid row or column ranges.
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