**Inheritance:**
java.lang.Object
```
public final class StringFormatExtensions
```

Contains extension methods for the `StringFormat` class.
## Methods

| Method | Description |
| --- | --- |
| [toGdiStringFormat(StringFormat stringFormat)](#toGdiStringFormat-com.aspose.imaging.StringFormat-) | Converts the `StringFormat` to the `System.Drawing.StringFormat`. |
### toGdiStringFormat(StringFormat stringFormat) {#toGdiStringFormat-com.aspose.imaging.StringFormat-}
```
public static System.Drawing.StringFormat toGdiStringFormat(StringFormat stringFormat)
```


Converts the `StringFormat` to the `System.Drawing.StringFormat`.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| stringFormat | [StringFormat](../../com.aspose.imaging/stringformat) | The `StringFormat` to convert. |

**Returns:**
[StringFormat](../../com.aspose.ms.system.drawing/stringformat) - The converted `System.Drawing.StringFormat`.
