1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Text;
|
---|
4 |
|
---|
5 | namespace ToolBox.Formatting
|
---|
6 | {
|
---|
7 | [Serializable()]
|
---|
8 | public enum TextFormat
|
---|
9 | {
|
---|
10 | // ------------------------------------------------------------------
|
---|
11 | /// <summary>
|
---|
12 | /// No formatting is applied.
|
---|
13 | /// </summary>
|
---|
14 | // ------------------------------------------------------------------
|
---|
15 | String,
|
---|
16 |
|
---|
17 | // ------------------------------------------------------------------
|
---|
18 | /// <summary>
|
---|
19 | /// Culturally aware currency format.
|
---|
20 | /// </summary>
|
---|
21 | // ------------------------------------------------------------------
|
---|
22 | Currency,
|
---|
23 |
|
---|
24 | // ------------------------------------------------------------------
|
---|
25 | /// <summary>
|
---|
26 | /// Only supports integral numbers. Displays a string using decimal
|
---|
27 | /// digits preceded by a minus sign if negative.
|
---|
28 | /// </summary>
|
---|
29 | // ------------------------------------------------------------------
|
---|
30 | Decimal,
|
---|
31 |
|
---|
32 | // ------------------------------------------------------------------
|
---|
33 | /// <summary>
|
---|
34 | /// Displays numbers in the form ±d.ddddddE±dd where d is a decimal
|
---|
35 | /// digit.
|
---|
36 | /// </summary>
|
---|
37 | // ------------------------------------------------------------------
|
---|
38 | ScientificNotation,
|
---|
39 |
|
---|
40 | // ------------------------------------------------------------------
|
---|
41 | /// <summary>
|
---|
42 | /// Displays a series of decimal digits with a decimal point and
|
---|
43 | /// additional digits.
|
---|
44 | /// </summary>
|
---|
45 | // ------------------------------------------------------------------
|
---|
46 | FixedPoint,
|
---|
47 |
|
---|
48 | // ------------------------------------------------------------------
|
---|
49 | /// <summary>
|
---|
50 | /// Displays either as a fixed-point or scientific notation based
|
---|
51 | /// on the size of the number.
|
---|
52 | /// </summary>
|
---|
53 | // ------------------------------------------------------------------
|
---|
54 | General,
|
---|
55 |
|
---|
56 | // ------------------------------------------------------------------
|
---|
57 | /// <summary>
|
---|
58 | /// Similar to fixed point but uses a separator character (such as ,)
|
---|
59 | /// for groups of digits.
|
---|
60 | /// </summary>
|
---|
61 | // ------------------------------------------------------------------
|
---|
62 | Number,
|
---|
63 |
|
---|
64 | // ------------------------------------------------------------------
|
---|
65 | /// <summary>
|
---|
66 | /// Multiplies the number by 100 and displays with a percent symbol.
|
---|
67 | /// </summary>
|
---|
68 | // ------------------------------------------------------------------
|
---|
69 | Percentage,
|
---|
70 |
|
---|
71 | // ------------------------------------------------------------------
|
---|
72 | /// <summary>
|
---|
73 | /// Formats a floating-point number so that it can be successfully
|
---|
74 | /// converted back to its original value.
|
---|
75 | /// </summary>
|
---|
76 | // ------------------------------------------------------------------
|
---|
77 | RoundTrip,
|
---|
78 |
|
---|
79 | // ------------------------------------------------------------------
|
---|
80 | /// <summary>
|
---|
81 | /// Displays an integral number using the base-16 number system.
|
---|
82 | /// </summary>
|
---|
83 | // ------------------------------------------------------------------
|
---|
84 | Hexadecimal
|
---|
85 | }
|
---|
86 | }
|
---|