## Decimal::ToString() const method


返回由对象表示的值的字符串表示形式。

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

## 另见

* Class [String](../../string/)
* Class [Decimal](../)
* Namespace [System](../../)
* Library [Aspose.Font for C++](../../../)
## Decimal::ToString(const Decimal\&, std::nullptr_t) const method




```cpp
String System::Decimal::ToString(const Decimal &value, std::nullptr_t) const
```

## 另见

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




```cpp
String System::Decimal::ToString(const SharedPtr<Globalization::CultureInfo> &culture) const
```

## 另见

* Class [String](../../string/)
* Typedef [SharedPtr](../../sharedptr/)
* Class [CultureInfo](../../../system.globalization/cultureinfo/)
* Class [Decimal](../)
* Namespace [System](../../)
* Library [Aspose.Font for C++](../../../)
## Decimal::ToString(const SharedPtr\<Globalization::NumberFormatInfo\>\&) const method




```cpp
String System::Decimal::ToString(const SharedPtr<Globalization::NumberFormatInfo> &nfi) const
```

## 另见

* Class [String](../../string/)
* Typedef [SharedPtr](../../sharedptr/)
* Class [NumberFormatInfo](../../../system.globalization/numberformatinfo/)
* Class [Decimal](../)
* Namespace [System](../../)
* Library [Aspose.Font for C++](../../../)
## Decimal::ToString(const SharedPtr\<IFormatProvider\>\&) const method


使用特定于区域性的格式信息将当前对象转换为字符串。

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


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| provider | const SharedPtr\<IFormatProvider\>\& | 提供特定文化格式信息的 [IFormatProvider](../../iformatprovider/) 对象。 |

### ReturnValue

当前对象的字符串表示形式。

## 另见

* Class [String](../../string/)
* Typedef [SharedPtr](../../sharedptr/)
* Class [IFormatProvider](../../iformatprovider/)
* Class [Decimal](../)
* Namespace [System](../../)
* Library [Aspose.Font for C++](../../../)
## Decimal::ToString(const String\&, const SharedPtr\<Globalization::CultureInfo\>\&) const method




```cpp
String System::Decimal::ToString(const String &format, const SharedPtr<Globalization::CultureInfo> &culture) const
```

## 另见

* Class [String](../../string/)
* Typedef [SharedPtr](../../sharedptr/)
* Class [CultureInfo](../../../system.globalization/cultureinfo/)
* Class [Decimal](../)
* Namespace [System](../../)
* Library [Aspose.Font for C++](../../../)
## Decimal::ToString(const String\&, const SharedPtr\<Globalization::NumberFormatInfo\>\&) const method




```cpp
String System::Decimal::ToString(const String &format, const SharedPtr<Globalization::NumberFormatInfo> &nfi) const
```

## 另见

* Class [String](../../string/)
* Typedef [SharedPtr](../../sharedptr/)
* Class [NumberFormatInfo](../../../system.globalization/numberformatinfo/)
* Class [Decimal](../)
* Namespace [System](../../)
* Library [Aspose.Font for C++](../../../)
## Decimal::ToString(const String\&, const SharedPtr\<IFormatProvider\>\&) const method


使用指定的字符串格式和由指定的 [IFormatProvider](../../iformatprovider/) 对象提供的特定文化格式信息，将当前对象转换为其字符串表示形式。

```cpp
String System::Decimal::ToString(const String &format, const SharedPtr<IFormatProvider> &provider) const
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 格式 | const String\& | 字符串格式。 |
| provider | const SharedPtr\<IFormatProvider\>\& | 提供特定文化格式信息的 [IFormatProvider](../../iformatprovider/) 对象。 |

### ReturnValue

当前对象的字符串表示形式。

## 另见

* Class [String](../../string/)
* Typedef [SharedPtr](../../sharedptr/)
* Class [IFormatProvider](../../iformatprovider/)
* Class [Decimal](../)
* Namespace [System](../../)
* Library [Aspose.Font for C++](../../../)
## Decimal::ToString(const String\&, std::nullptr_t) const method




```cpp
String System::Decimal::ToString(const String &format, std::nullptr_t=nullptr) const
```

## 另见

* Class [String](../../string/)
* Class [Decimal](../)
* Namespace [System](../../)
* Library [Aspose.Font for C++](../../../)
