GrapeCity MultiRow Windows Forms Documentation
Remove(Int32,Int32) Method


The beginning position at which to remove the cells.
The number of cells to remove from the CellCollection.
Removes the specified number of cells from this collection beginning at the specified position.
Syntax
<TakeCellFreezeAttribute()>
Public Overloads Sub Remove( _
   ByVal index As Integer, _
   ByVal count As Integer _
) 
Dim instance As CellCollection
Dim index As Integer
Dim count As Integer
 
instance.Remove(index, count)
[TakeCellFreeze()]
public void Remove( 
   int index,
   int count
)

Parameters

index
The beginning position at which to remove the cells.
count
The number of cells to remove from the CellCollection.
Exceptions
ExceptionDescription
System.InvalidOperationException The method is executed at run time.
System.NotSupportedExceptionThe CellCollection is read-only.
System.ArgumentOutOfRangeException

The index is less than zero or greater than the number of Cells in the collection minus 1.

-or-

The index and count do not denote a valid range of Cells.

-or-

The index is less than 1 or greater than the number of Cells in the collection.

Requirements

Target Platforms: 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

CellCollection Class
CellCollection Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.