API Reference
Class
ExcelNumberFormats
Maps number format presets to Excel format codes.
Inheritance
- Object
- ExcelNumberFormats
Methods
public static String Get(ExcelNumberPreset preset, Int32 decimals = 2, CultureInfo culture = null) #Returns:
StringReturns an Excel number format code for the given preset, optionally controlling decimal places and currency culture.
Parameters
- preset OfficeIMO.Excel.ExcelNumberPreset
- Predefined number format.
- decimals System.Int32 = 2
- Number of decimal places where applicable.
- culture System.Globalization.CultureInfo = null
- Culture used for currency symbol; defaults to current culture.
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object