New to Telerik Document ProcessingStart a free 30-day trial

Provides culture-aware factory methods for Excel built-in number formats whose formatCode is implied (not explicitly written) on export.

Definition

Namespace:Telerik.Documents.SpreadsheetStreaming

Assembly:Telerik.Documents.SpreadsheetStreaming.dll

Syntax:

C#
public static class BuiltInNumberFormats

Inheritance: objectBuiltInNumberFormats

Methods

Returns a currency format with no decimals and standard positive/negative patterns (e.g. en-US: $#,##0_);($#,##0)).

C#
public static string GetCurrency()
Returns:

string

The number format string.

Returns a currency format with no decimals using red for negative values (e.g. en-US: $#,##0_);Red).

C#
public static string GetCurrency1()
Returns:

string

The number format string.

Returns a currency format with two decimals and standard positive/negative patterns (e.g. en-US: $#,##0.00_);($#,##0.00)).

C#
public static string GetCurrency2()
Returns:

string

The number format string.

Returns a currency format with two decimals using red for negative values (e.g. en-US: $#,##0.00_);Red).

C#
public static string GetCurrency3()
Returns:

string

The number format string.

Generates a Currency number format string. Example format in en-US culture: (*#,##0);(*(#,##0);(* "-");(@_).

C#
public static string GetCurrency4()
Returns:

string

The number format string.

Generates a Currency number format string. Example format in en-US culture: ($*#,##0);($*(#,##0);($* "-");(@_).

C#
public static string GetCurrency5()
Returns:

string

The number format string.

Generates a Currency number format string. Example format in en-US culture: (*#,##0.00);(*(#,##0.00);(*"-"??);(@_).

C#
public static string GetCurrency6()
Returns:

string

The number format string.

Generates a Currency number format string. Example format in en-US culture: ($*#,##0.00);($*(#,##0.00);($*"-"??);(@_).

C#
public static string GetCurrency7()
Returns:

string

The number format string.

Generates a Date number format with day and month. Example format in en-US culture: d-mmm.

C#
public static string GetDayMonth()
Returns:

string

The number format string.

Generates a Date number format with day, month and year. Example format in en-US culture: m/d/yyyy.

C#
public static string GetDayMonthLongYear()
Returns:

string

The number format string.

Generates a Date number format with day, month and year. Example format in en-US culture: d-mmm-yy.

C#
public static string GetDayMonthYear()
Returns:

string

The number format string.

Returns built in format with the specified id.

C#
public static string GetFormatById(int id)
Parameters:idint

The searched format id.

Returns:

string

The format string.

Generates a Fraction number format for up to one digit. Example format in en-US culture: # ?/?.

C#
public static string GetFraction()
Returns:

string

The number format string.

Generates a Fraction number format for up to two digit. Example format in en-US culture: # ??/??.

C#
public static string GetFraction1()
Returns:

string

The number format string.

Returns the General number format string for the current culture (e.g. en-US: General).

C#
public static string GetGeneral()
Returns:

string

The number format string.

Generates a Time number format with hours and minutes. Example format in en-US culture: h:mm.

C#
public static string GetHourMinute()
Returns:

string

The number format string.

Generates a Time number format with hours, minutes and AM/PM. Example format in en-US culture: h:mm AM/PM.

C#
public static string GetHourMinuteAMPM()
Returns:

string

The number format string.

Generates a Time number format with hours, minutes and seconds. Example format in en-US culture: h:mm:ss.

C#
public static string GetHourMinuteSecond()
Returns:

string

The number format string.

Generates a Time number format with hours, minutes, seconds and AM/PM. Example format in en-US culture: h:mm:ss AM/PM.

C#
public static string GetHourMinuteSecondAMPM()
Returns:

string

The number format string.

Generates a Date number format with month and year. Example format in en-US culture: mmm-yy.

C#
public static string GetMonthYear()
Returns:

string

The number format string.

Returns the basic integer number format (e.g. en-US: 0).

C#
public static string GetNumber()
Returns:

string

The number format string.

Returns a number format with two decimal places and no thousands separator (e.g. en-US: 0.00).

C#
public static string GetNumber1()
Returns:

string

The number format string.

Returns an integer number format including thousands separators (e.g. en-US: #,##0).

C#
public static string GetNumber2()
Returns:

string

The number format string.

Returns a number format with two decimal places and thousands separators (e.g. en-US: #,##0.00).

C#
public static string GetNumber3()
Returns:

string

The number format string.

Generates a Currency number format string with no decimal places, a thousand separator, and positive and negative format pattern and alignment. Example format in en-US culture: #,##0_);(#,##0).

C#
public static string GetNumber4()
Returns:

string

The number format string.

Generates a Currency number format string with no decimal places, a thousand separator, and positive and negative format with red digits patterns and alignment. Example format in en-US culture: #,##0_);Red.

C#
public static string GetNumber5()
Returns:

string

The number format string.

Generates a Currency number format string with two decimal places, a thousand separator, and positive and negative format pattern and alignment. Example format in en-US culture: #,##0.00_);(#,##0.00).

C#
public static string GetNumber6()
Returns:

string

The number format string.

Generates a Currency number format string with two decimal places, a thousand separator, and positive and negative format with red digits patterns and alignment. Example format in en-US culture: #,##0.00_);Red.

C#
public static string GetNumber7()
Returns:

string

The number format string.

Returns a percent format with no decimal places (e.g. en-US: 0%).

C#
public static string GetPercent()
Returns:

string

The number format string.

Returns a percent format with two decimal places (e.g. en-US: 0.00%).

C#
public static string GetPercent1()
Returns:

string

The number format string.

Generates a cuture dependent Scientific number format string. Example format in en-US culture: 0.00E+00.

C#
public static string GetScientific()
Returns:

string

The number format string.

Generates a culture dependent Scientific number format string. Example format in en-US culture: ##0.0E+0.

C#
public static string GetScientific2()
Returns:

string

The number format string.

Generates a Date number format for short date. Example format in en-US culture: m/d/yyyy.

C#
public static string GetShortDate()
Returns:

string

The number format string.

Generates a Time number format with short date, hours and minutes. Example format in en-US culture: m/d/yyyy h:mm.

C#
public static string GetShortDateHourMinute()
Returns:

string

The number format string.