Glossary Item Box

GetCellGetCellsCountRedrawRemoveAllCellsRemoveCellSetCell

See Also VS GridMap Help Send Feedback

DuplicateCell

Function DuplicateCell (OldID As Object, NewID As Object, NewCellX As Integer, NewCellY As Integer) return clsPsysCell

Fastest method

Duplicate a cell passing exists ID cell, new ID cell, X and Y new position.

Use OldID for duplicate cell in a new position NewCellX and NewCellY.

The function return the new cell object clsPsysCell type.

 

Visual Basic example:

'This example duplicate cell to new cell in 5,5 position.
'And return the newCell object.
Dim newCell as clsPsysCell = PsysGridMap1.DuplicateCell(oldIdCell, newIdCell, newXposition, newYposition)

 

Function DuplicateCell (OldCellX As Integer, OldCellY As Integer, NewID As Object, NewCellX As Integer, NewCellY As Integer) return clsPsysCell

Slower method

Duplicate a cell passing X and Y position.

Use OldCellX and OldCellY for duplicate cell in a new position NewCellX and NewCellY.

The function return the new cell object clsPsysCell type.

 

Visual Basic example:

'This example duplicate cell in 1,1 position to new cell in 5,5 position.
'And return the newCell object.
Dim newCell as clsPsysCell = PsysGridMap1.DuplicateCell(1,1,5,5)

 

GetCellGetCellsCountRedrawRemoveAllCellsRemoveCellSetCell