Xceed Workbooks for .NET v1.4 Documentation
InsertRange(Int32,Int32,Int32,Int32,InsertRangeShiftType) Method


Xceed.Workbooks.NET Assembly > Xceed.Workbooks.NET Namespace > Worksheet Class > InsertRange Method : InsertRange(Int32,Int32,Int32,Int32,InsertRangeShiftType) Method
The Id of the Row that is currently located where the topmost Row of the inserted CellRange will be located.
The Id of the Column that is currently located where the leftmost Column of the inserted CellRange will be located.
The Id of the Row that is currently located where the bottommost Row of the inserted CellRange will be located. 
The Id of the Column that is currently located where the rightmost Column of the inserted CellRange will be located.
Specifies the InsertRangeShiftType.
Inserts an empty CellRange using RowColumn Ids to identify where the range will be inserted and allows to specify in which direction the Cells located after the inserted range will be shifted.
Syntax
'Declaration

 

Public Overloads Sub InsertRange( _

   ByVal startingRowId As Integer, _

   ByVal startingColumnId As Integer, _

   ByVal endingRowId As Integer, _

   ByVal endingColumnId As Integer, _

   ByVal shiftType As InsertRangeShiftType _

) 
'Usage

 

Dim instance As Worksheet

Dim startingRowId As Integer

Dim startingColumnId As Integer

Dim endingRowId As Integer

Dim endingColumnId As Integer

Dim shiftType As InsertRangeShiftType

 

instance.InsertRange(startingRowId, startingColumnId, endingRowId, endingColumnId, shiftType)

Parameters

startingRowId
The Id of the Row that is currently located where the topmost Row of the inserted CellRange will be located.
startingColumnId
The Id of the Column that is currently located where the leftmost Column of the inserted CellRange will be located.
endingRowId
The Id of the Row that is currently located where the bottommost Row of the inserted CellRange will be located. 
endingColumnId
The Id of the Column that is currently located where the rightmost Column of the inserted CellRange will be located.
shiftType
Specifies the InsertRangeShiftType.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 7, 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

Reference

Worksheet Class
Worksheet Members
Overload List