---
title: "GraphicsContainer.GetContentBounds Method "
canonical: https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_Drawing_GraphicsContainer_GetContentBounds_1_1d836bf2.htm
archived: false
applies_to:
  - product: "Graphics Mill"
    versions: ["12.1", "6.x-12.x (may differ)"]
    entity_id: "https://www.graphicsmill.com/#software-application"
---

# GraphicsContainer.GetContentBounds Method 

**Applies to:** Graphics Mill 12.1, 6.x-12.x (may differ)
 
Gets the RectangleF object that represents actual bounds of the container content.
 
**Namespace:** [Aurigma.GraphicsMill.Drawing](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Drawing.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```csharp
public RectangleF GetContentBounds(FontRegistry fontRegistry
)
```
 
### Parameters
 
 - fontRegistry
     - Type: [Aurigma.GraphicsMill.Drawing.FontRegistry](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Drawing_FontRegistry.htm.md)
The [FontRegistry](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Drawing_FontRegistry.htm.md) to get the text bounds.
 
### Return Value
A RectangleF object that contains the text bounds.
   
## See Also

### Reference

- [GraphicsContainer Class](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Drawing_GraphicsContainer.htm.md)
- [Aurigma.GraphicsMill.Drawing Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Drawing.htm.md)
