## String::ToString() const method


Wrapper for handling [String](../) class in contexts where [ToString()](./) is being called on value type objects.

```cpp
String System::String::ToString() const
```


### ReturnValue

Copy of current string. It is considered a null string if current string is a null string.

## See Also

* Class [String](../)
* Class [String](../)
* Namespace [System](../../)
* Library [Aspose.Font for C++](../../../)
## String::ToString(const SharedPtr\<IFormatProvider\>\&) const method


Wrapper for handling [String](../) class in contexts where [ToString()](./) is being called on value type objects.

```cpp
String System::String::ToString(const SharedPtr<IFormatProvider> &) const
```


### ReturnValue

Copy of current string. It is considered a null string if current string is a null string.

## See Also

* Class [String](../)
* Typedef [SharedPtr](../../sharedptr/)
* Class [IFormatProvider](../../iformatprovider/)
* Class [String](../)
* Namespace [System](../../)
* Library [Aspose.Font for C++](../../../)
