Format Interface |
The Format type exposes the following members.
| Name | Description | |
|---|---|---|
| Decimals | Gets or sets the number digits to the right of the decimal point to output. | |
| ForceDecimal | Gets or sets decimal point appearance. When set to true the decimal point will always be included with the formatted number. false will remove the decimal point for integer values. | |
| ForceSign | Gets or sets sign appearance. When set to true will force the output of a plus (+) sign on positive numbers. | |
| Offset | Gets or sets the number to add to the value prior to formatting it for output. | |
| Prefix | Gets or sets the prefix of the output value as a text string. | |
| Scale | Gets or sets the scale factor to multiply the value by prior to formatting it for output. | |
| Separator | Gets or sets the character to use as the decimal point. The default is '.' | |
| Suffix | Gets or sets the suffix of the output value as a text string. | |
| Trim | Gets or sets the trailing zeros appearance. When set to true the trailing zeros will be trimmed from the right of the decimal point. | |
| TrimLeadZero | Gets or sets the trim of lead zero. When set to true will trim the lead zero from a floating-point number if the number is fractional, e.g. .123 instead of 0.123 | |
| Width | Gets or sets the minimum width of the output string. | |
| Zeropad | Gets or sets zeros appearance. When set to true will fill the beginning of the output string with zeros to match the specified width. |