Spread Windows Forms 12.0 Product Documentation
Move Method (DefaultSheetStyleModel)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.Model Namespace > DefaultSheetStyleModel Class : Move Method
Row index from which to begin the move
Column index from which to begin the move
Row index at which to paste cell styles
Column index at which to paste cell styles
Number of rows to move
Number of columns to move
Moves the specified range of direct styles from one location to another.
Syntax
'Declaration
 
Public Overridable Sub Move( _
   ByVal fromRow As Integer, _
   ByVal fromColumn As Integer, _
   ByVal toRow As Integer, _
   ByVal toColumn As Integer, _
   ByVal rowCount As Integer, _
   ByVal columnCount As Integer _
) 
'Usage
 
Dim instance As DefaultSheetStyleModel
Dim fromRow As Integer
Dim fromColumn As Integer
Dim toRow As Integer
Dim toColumn As Integer
Dim rowCount As Integer
Dim columnCount As Integer
 
instance.Move(fromRow, fromColumn, toRow, toColumn, rowCount, columnCount)
public virtual void Move( 
   int fromRow,
   int fromColumn,
   int toRow,
   int toColumn,
   int rowCount,
   int columnCount
)

Parameters

fromRow
Row index from which to begin the move
fromColumn
Column index from which to begin the move
toRow
Row index at which to paste cell styles
toColumn
Column index at which to paste cell styles
rowCount
Number of rows to move
columnCount
Number of columns to move
Example
This example moves the style to another location.
FarPoint.Win.Spread.Model.DefaultSheetStyleModel defstyleModel = new FarPoint.Win.Spread.Model.DefaultSheetStyleModel();
FarPoint.Win.Spread.StyleInfo sInfo = new FarPoint.Win.Spread.StyleInfo();
defstyleModel = (FarPoint.Win.Spread.Model.DefaultSheetStyleModel)fpSpread1.ActiveSheet.Models.Style;
sInfo.BackColor = Color.LightBlue;
defstyleModel.SetDirectInfo(0, 0, sInfo);
defstyleModel.Move(0, 0, 3, 0 , 1, 1);
Dim defstyleModel As New FarPoint.Win.Spread.Model.DefaultSheetStyleModel()
Dim sInfo As New FarPoint.Win.Spread.StyleInfo()
defstyleModel = FpSpread1.ActiveSheet.Models.Style
sInfo.BackColor = Color.LightBlue
defstyleModel.SetDirectInfo(0, 0, sInfo)
defstyleModel.Move(0, 0, 3, 0, 1, 1)
See Also

Reference

DefaultSheetStyleModel Class
DefaultSheetStyleModel Members