---
title: "TextTrimmingMode Enumeration"
canonical: https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Drawing_TextTrimmingMode.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# TextTrimmingMode Enumeration
 
Contains possible trimming modes which defines how to trim characters from a string so that the string fits into a layout rectangle (in [DrawString(String, Font, SolidBrush, Rectangle, TextTrimmingMode, Boolean, Boolean, Boolean)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Drawing_GdiGraphics_DrawString_8_5ce1344a.htm.md) method).
 
**Namespace:** [Aurigma.GraphicsMill.Drawing](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Drawing.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Enumeration TextTrimmingMode
```
 
```csharp
public enum TextTrimmingMode
```
 
## Members

|   |  Member name |  Description |
| --- | --- | --- |
 |   |  PathEllipsis |  Replaces characters in the middle of the string with ellipses so that the result fits in the specified rectangle. If the string contains backslash (\) characters, this value preserves as much as possible of the text after the last backslash. |
 |   |  EndEllipsis |  If the end of a string does not fit in the rectangle, it is truncated and ellipses are added. If a word that is not at the end of the string goes beyond the limits of the rectangle, it is truncated without ellipses. |
 |   |  None |  No ellipses are added. |
   
## See Also

### Reference

- [Aurigma.GraphicsMill.Drawing Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Drawing.htm.md)
