## Graphics.EndContainer method

Closes the current graphics container and restores the state of this Graphics to the state saved by a call to the BeginContainer method.

```csharp
public void EndContainer(GraphicsContainer container)
```

| Parameter | Type | Description |
| --- | --- | --- |
| container | GraphicsContainer | GraphicsContainer that represents the container this method restores. |

### See Also

* class [GraphicsContainer](../../../aspose.drawing.drawing2d/graphicscontainer/)
* class [Graphics](../)
* namespace [Aspose.Drawing](../../graphics/)
* assembly [Aspose.Drawing.Common](../../../)


