Xceed Workbooks for .NET v1.4 Documentation
DeleteRange(Int32,Int32,Int32,Int32,DeleteRangeShiftType) Method


Xceed.Workbooks.NET Assembly > Xceed.Workbooks.NET Namespace > Worksheet Class > DeleteRange Method : DeleteRange(Int32,Int32,Int32,Int32,DeleteRangeShiftType) Method
The Id of the Row that corresponds to the topmost Row of the CellRange that will be deleted.
The Id of the Column that corresponds to the leftmost Column of the CellRange that will be deleted.
The Id of the Row that corresponds to the bottommost Row of the CellRange that will be deleted. 
The Id of the Column that corresponds to the rightmost Column of the CellRange that will be deleted.
Specifies the DeleteRangeShiftType.
Deletes a CellRange using RowColumn Ids to identify the range and allows to specify in which direction the Cells located after the deleted range will be shifted.
Syntax
'Declaration

 

Public Overloads Sub DeleteRange( _

   ByVal startingRowId As Integer, _

   ByVal startingColumnId As Integer, _

   ByVal endingRowId As Integer, _

   ByVal endingColumnId As Integer, _

   ByVal shiftType As DeleteRangeShiftType _

) 
'Usage

 

Dim instance As Worksheet

Dim startingRowId As Integer

Dim startingColumnId As Integer

Dim endingRowId As Integer

Dim endingColumnId As Integer

Dim shiftType As DeleteRangeShiftType

 

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

Parameters

startingRowId
The Id of the Row that corresponds to the topmost Row of the CellRange that will be deleted.
startingColumnId
The Id of the Column that corresponds to the leftmost Column of the CellRange that will be deleted.
endingRowId
The Id of the Row that corresponds to the bottommost Row of the CellRange that will be deleted. 
endingColumnId
The Id of the Column that corresponds to the rightmost Column of the CellRange that will be deleted.
shiftType
Specifies the DeleteRangeShiftType.
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