Spread Windows Forms 6.0 Product Documentation
MoveContent Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > DragMoveEventArgs Class : MoveContent Property


Glossary Item Box

Gets or sets whether the move operation moves the contents of the rows or columns (and rows or columns in between) without changing the index mapping.

Syntax

Visual Basic (Declaration) 
Public Property MoveContent As Boolean
Visual Basic (Usage)Copy Code
Dim instance As DragMoveEventArgs
Dim value As Boolean
 
instance.MoveContent = value
 
value = instance.MoveContent
C# 
public bool MoveContent {get; set;}

Property Value

Boolean: true if content is moved in the models and mappings with the models change; false otherwise

Remarks

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.

Example

This example will move the span when dragging a column.
C#Copy Code
fpSpread1.AllowColumnMove = true;
fpSpread1.ActiveSheet.AddSpanCell(0, 0, 2, 2);

private void fpSpread1_ColumnDragMove(object sender, FarPoint.Win.Spread.DragMoveEventArgs e)
{
e.MoveContent = true; 
}

Visual BasicCopy Code
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 

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

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.