FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class : MoveRange Method |
'Declaration Public Sub MoveRange( _ ByVal fromRow As Integer, _ ByVal fromColumn As Integer, _ ByVal toRow As Integer, _ ByVal toColumn As Integer, _ ByVal rowCount As Integer, _ ByVal columnCount As Integer, _ ByVal dataOnly As Boolean _ )
Exception | Description |
---|---|
System.InvalidOperationException | Operation is not valid; cannot move entire sheet of cells |
System.InvalidOperationException | Operation is not valid; cannot move entire columns over partial columns |
System.InvalidOperationException | Operation is not valid; cannot move entire rows over partial rows |
System.InvalidOperationException | Operation is not valid; cannot move a range of cells over part of a spanned cell |
fpSpread1.ActiveSheet.Cells[0, 0, 2, 2].Text = "Test Move"; fpSpread1.ActiveSheet.MoveRange(0, 0, 4, 0, 2, 2, true);
FpSpread1.ActiveSheet.Cells(0, 0, 2, 2).Text = "Test Move" FpSpread1.ActiveSheet.MoveRange(0, 0, 4, 0, 2, 2, True)
Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8