Style.NumberFormat

Style.NumberFormat property

Gets or sets the display format of numbers and dates.

public int NumberFormat { get; set; }

Remarks

Value Type Format String 0GeneralGeneral1Decimal02Decimal0.003Decimal#,##04Decimal#,##0.005Currency$#,##0;($#,##0)6Currency$#,##0;Red7Currency$#,##0.00;($#,##0.00)8Currency$#,##0.00;Red9Percentage0%10Percentage0.00%11Scientific0.00E+0012Fraction# ?/?13Fraction# ??/??14Datem/d/yyyy15Dated-mmm-yy16Dated-mmm17Datemmm-yy18Timeh:mm AM/PM19Timeh:mm:ss AM/PM20Timeh:mm21Timeh:mm:ss22Timem/d/yyyy h:mm37Accounting#,##0;(#,##0)38Accounting#,##0;Red39Accounting#,##0.00;(#,##0.00)40Accounting#,##0.00;Red41Accounting_ * #,##0_ ;_ * (#,##0)_ ;_ * “-”_ ;_ @42Currency $* #,##0_ ;_ $* (#,##0)_ ;_ $* “-”_ ;_ @43Accounting * #,##0.00_ ;_ * (#,##0.00)_ ;_ * “-”??_ ;_ @44Currency $* #,##0.00_ ;_ $* (#,##0.00)_ ;_ $* “-”??_ ;_ @_45Timemm:ss46Time[h]:mm:ss47Timemm:ss.048Scientific##0.0E+0049Text@

See Also