---
title: "StringMeasure Structure"
canonical: https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Drawing_StringMeasure.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"
---

# StringMeasure Structure

**Applies to:** Graphics Mill 12.1, 6.x-12.x (may differ)
 
Contains string measurments.
 
**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 struct StringMeasure
```
 
## Examples
  
```csharp
using (var bitmap = new Bitmap(200, 80, PixelFormat.Format24bppRgb, RgbColor.White))
using (var graphics = bitmap.GetGraphics())
{
    var font = graphics.CreateFont("Arial", 20);
    StringMeasure stringMeasure = font.MeasureString("String Metrics");
    Console.WriteLine("String Metrics:");
    Console.WriteLine("  Width:     {0}", stringMeasure.Width);
    Console.WriteLine("  Height:    {0}", stringMeasure.Height);
    Console.WriteLine("  Ascender:  {0}", stringMeasure.Ascender);
    Console.WriteLine("  Descender: {0}", stringMeasure.Descender);
}
```
   
## See Also

### Reference

- [StringMeasure Members](https://www.graphicsmill.com/docs/gm/AllMembers_T_Aurigma_GraphicsMill_Drawing_StringMeasure.htm.md)
- [Aurigma.GraphicsMill.Drawing Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Drawing.htm.md)

### Manual

- [Working with the Text Class](https://www.graphicsmill.com/docs/gm/working-with-text-class.htm.md)
