FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > DragMoveEventArgs Class : MoveContent Property |
'Declaration Public Property MoveContent As Boolean
'Usage Dim instance As DragMoveEventArgs Dim value As Boolean instance.MoveContent = value value = instance.MoveContent
public bool MoveContent {get; set;}
If you set this property set to true, then the actual contents of the sheet models are moved. If you set this property to false, then the contents of the sheet models are unchanged, and the coordinate mapping of view row or column indexes to model row or column indexes are changed, similar to performing a sort with SortRows, SortColumns, or the automatic sorting.
If this property is true, cell spans remain visible and the index mappings to the models change. If this property is false then the index mappings for the models do not change and cell spans are hidden.
fpSpread1.AllowColumnMove = true; fpSpread1.ActiveSheet.AddSpanCell(0, 0, 2, 2); private void fpSpread1_ColumnDragMove(object sender, FarPoint.Win.Spread.DragMoveEventArgs e) { e.MoveContent = true; }
FpSpread1.AllowColumnMove = True FpSpread1.ActiveSheet.AddSpanCell(0, 0, 2, 2) Private Sub FpSpread1_ColumnDragMove(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.DragMoveEventArgs) Handles FpSpread1.ColumnDragMove e.MoveContent = True End Sub
Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10