Adjusts the number of decimal places in a format code.
Declaration
public static string AdjustDecimals(string formatCode, int delta)
Parameters
Returns
Applies a format code to a value and returns the formatted string. Returns null when the format is General/null (caller should fall back to default rendering).
Declaration
public static string Apply(string formatCode, object value, Documents.Spreadsheet.CellDataType type)
Parameters
Returns
Applies a format code to a value and returns the formatted string. Returns null when the format is General/null (caller should fall back to default rendering).
Declaration
public static string Apply(string formatCode, object value, Documents.Spreadsheet.CellDataType type, Globalization.CultureInfo culture)
Parameters
Returns
Applies a format code to a value and returns the formatted string and optional color. The color is determined by color codes in the format string (e.g., [Red], [Green]).
Declaration
public static ValueTuple<string, string> ApplyWithColor(string formatCode, object value, Documents.Spreadsheet.CellDataType type)
Parameters
Returns
Applies a format code to a value and returns the formatted string and optional color. The color is determined by color codes in the format string (e.g., [Red], [Green]).
Declaration
public static ValueTuple<string, string> ApplyWithColor(string formatCode, object value, Documents.Spreadsheet.CellDataType type, Globalization.CultureInfo culture)
Parameters
Returns