
## set_custom(self, custom, builtin_preference) {#System.String-bool}

Sets the Custom number format string of a cell.



```python

def set_custom(self, custom, builtin_preference):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| custom | System.String | Custom number format string, should be InvariantCulture pattern. |
| builtin_preference | bool | If given Custom number format string matches one of the built-in number formats<br/>corresponding to current regional settings, whether set the number format as built-in instead of Custom. |



### See Also
* module [`aspose.cells`](../../)
* class [`Style`](/cells/python-net/aspose.cells/style)
