---
title: "Layer..::.SwapObjects Method "
canonical: https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_WinControls_Layer_SwapObjects.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# Layer.SwapObjects Method 
 
Swaps two v-objects inside the layer (changes the z-order).
 
## Overload List

|   |  Name |  Description |
| --- | --- | --- |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [SwapObjects(Int32, Int32)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_WinControls_Layer_SwapObjects_2_22dcb54d.htm.md) |  Swaps the v-objects specified by their indices inside the layer (changes the z-order). |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [SwapObjects(IVObject, IVObject)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_WinControls_Layer_SwapObjects_2_dda1fde1.htm.md) |  Swaps the specifed v-objects inside the layer (changes the z-order). |
   
## See Also

### Reference

- [Layer Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_Layer.htm.md)
- [Layer Members](https://www.graphicsmill.com/docs/gm5/AllMembers_T_Aurigma_GraphicsMill_WinControls_Layer.htm.md)
- [Aurigma.GraphicsMill.WinControls Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_WinControls.htm.md)
