---
title: "StringFormatExtensions.ToGdiStringFormat"
url: "https://reference.aspose.com/imaging/net/aspose.imaging.extensions/stringformatextensions/togdistringformat/"
product: "Aspose.Imaging for .NET API Reference"
description: "StringFormatExtensions method. Converts the StringFormat to the StringFormat"
---

## StringFormatExtensions.ToGdiStringFormat method

Converts the [`StringFormat`](../../../aspose.imaging/stringformat/) to the StringFormat.

```csharp
public static StringFormat ToGdiStringFormat(StringFormat stringFormat)
```

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

### Return Value

The converted StringFormat.

### See Also

* class [StringFormat](../../../aspose.imaging/stringformat/)
* class [StringFormatExtensions](../)
* namespace [Aspose.Imaging.Extensions](../../stringformatextensions/)
* assembly [Aspose.Imaging](../../../)


