---
title: "Text.GetBlackBox Method "
canonical: https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_Drawing_Text_GetBlackBox_3_185e8a92.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"
---

# Text.GetBlackBox Method 

**Applies to:** Graphics Mill 12.1, 6.x-12.x (may differ)
 
Returns the black box for the text.
 
**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 GetBlackBox(FontRegistry fontRegistry,float dpiX,float dpiY
)
```
 
### 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 black box of this text.

 - dpiX
     - Type: System.Single
The horizontal resolution of the [Text](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Drawing_Text.htm.md) in DPI.

 - dpiY
     - Type: System.Single
The vertical resolution of the [Text](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Drawing_Text.htm.md) in DPI.
 
### Return Value
The rectangle that describes the text black box.
   
## See Also

### Reference

- [Text Class](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Drawing_Text.htm.md)
- [Aurigma.GraphicsMill.Drawing Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Drawing.htm.md)
