## Graphics::EndContainer method


Closes the current container and restores the state of this object from the state of saved container.

```cpp
void System::Drawing::Graphics::EndContainer(const SharedPtr<Drawing2D::GraphicsContainer> &container)
```


| Parameter | Type | Description |
| --- | --- | --- |
| container | const SharedPtr\<Drawing2D::GraphicsContainer\>\& | The container to restore the state from |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [GraphicsContainer](../../../system.drawing.drawing2d/graphicscontainer/)
* Class [Graphics](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.PDF for C++](../../../)
