## Marshal::PtrToStringUTF8(IntPtr) method


Crée une [String](../../../system/string/) gérée à partir d'une chaîne UTF8 terminée par zéro non gérée.

```cpp
static String System::Runtime::InteropServices::Marshal::PtrToStringUTF8(IntPtr ptr)
```


| Paramètre | Type | Description |
| --- | --- | --- |
| ptr | IntPtr | Pointeur vers la chaîne non gérée. |

### ReturnValue

Une chaîne gérée.

## Voir aussi

* Class [String](../../../system/string/)
* Class [Marshal](../)
* Namespace [System::Runtime::InteropServices](../../)
* Library [Aspose.Font for C++](../../../)
## Marshal::PtrToStringUTF8(IntPtr, int) method


Crée une [String](../../../system/string/) gérée à partir d'une chaîne UTF8 non gérée.

```cpp
static String System::Runtime::InteropServices::Marshal::PtrToStringUTF8(IntPtr ptr, int length)
```


| Paramètre | Type | Description |
| --- | --- | --- |
| ptr | IntPtr | Pointeur vers la chaîne non gérée. |
| longueur | int | Longueur de la chaîne non gérée. |

### ReturnValue

Une chaîne gérée.

## Voir aussi

* Class [String](../../../system/string/)
* Class [Marshal](../)
* Namespace [System::Runtime::InteropServices](../../)
* Library [Aspose.Font for C++](../../../)
