[]
        
(Showing Draft Content)

GrapeCity.SpreadBuilder.DDSheets.Move

Move Method

Move(string, short)

Moves the sheet with the specified name to the specified position.

Declaration
public void Move(string sName, short newPosition)
Parameters
Type Name Description
string sName

The value of the DDSheet's Name property that you want to move.

short newPosition

The new position you want to move the sheet to. If the new position is less than zero, the sheet will be moved to the beginning of the collection (0). If the new position is greater than the upper bound of this collection, the sheet will be moved to the end of the collection.

Move(short, short)

Moves the sheet at the specified position to the specified new position.

Declaration
public void Move(short oldPosition, short newPosition)
Parameters
Type Name Description
short oldPosition

The current position (index) of the sheet you want to move.

short newPosition

The new position you want to move the sheet to. If the new position is less than zero, the sheet will be moved to the beginning of the collection (0). If the new position is greater than the upper bound of this collection, the sheet will be moved to the end of the collection.