represents a number formatter which can preview number formats without inserting them.
More...
import"XNumberFormatPreviewer.idl";
represents a number formatter which can preview number formats without inserting them.
- See also
- NumberFormatter
- Developers Guide
- Office Development - Number Formats
◆ convertNumberToPreviewString()
formats a value using a format string, without inserting a number format into the list.
- Parameters
-
aFormat | is the format string that is used for formatting. |
fValue | is the value that is formatted. |
nLocale | is the locale that is used to interpret the format string. |
bAllowEnglish | specifies if English language number format strings are accepted in addition to those from the selected locale. |
- Returns
- the formatted string.
- Exceptions
-
◆ queryPreviewColorForNumber()
returns the color which is to be used for a number.
- Parameters
-
aFormat | is the format string that is used for formatting. |
fValue | is the value that is formatted. |
nLocale | is the locale that is used to interpret the format string. |
bAllowEnglish | specifies if English language number format strings are accepted in addition to those from the selected locale. |
aDefaultColor | is the color that should be returned if no color is set by the number format. |
- Returns
- the color that should used to output the formatted string.
- Exceptions
-
The documentation for this interface was generated from the following file: