## Style.SetCustom method

设置单元格的自定义数字格式字符串。

```csharp
public void SetCustom(string custom, bool builtinPreference)
```

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| custom | String | 自定义数字格式字符串，应为 InvariantCulture 模式。 |
| builtinPreference | Boolean | 如果给定的自定义号码格式字符串与当前区域设置对应的内置号码格式 之一匹配，是否将号码格式设置为内置而不是自定义。 |

### 也可以看看

* class [Style](../../style)
* 命名空间 [Aspose.Cells](../../style)
* 部件 [Aspose.Cells](../../../)

<!-- DO NOT EDIT: generated by xmldocmd for Aspose.Cells.dll -->
