Style.SetCustom

Style.SetCustom method

Sets the Custom number format string of a cell.

public void SetCustom(string custom, bool builtinPreference)
ParameterTypeDescription
customStringCustom number format string, should be InvariantCulture pattern.
builtinPreferenceBooleanIf given Custom number format string matches one of the built-in number formats corresponding to current regional settings, whether set the number format as built-in instead of Custom.

See Also