using System; namespace ToolBox.Formatting { [Serializable()] public enum TextFormat { // ------------------------------------------------------------------ /// /// No formatting is applied. /// // ------------------------------------------------------------------ String, // ------------------------------------------------------------------ /// /// Culturally aware currency format. /// // ------------------------------------------------------------------ Currency, // ------------------------------------------------------------------ /// /// Only supports integral numbers. Displays a string using decimal /// digits preceded by a minus sign if negative. /// // ------------------------------------------------------------------ Decimal, // ------------------------------------------------------------------ /// /// Displays numbers in the form ħd.ddddddEħdd where d is a decimal /// digit. /// // ------------------------------------------------------------------ ScientificNotation, // ------------------------------------------------------------------ /// /// Displays a series of decimal digits with a decimal point and /// additional digits. /// // ------------------------------------------------------------------ FixedPoint, // ------------------------------------------------------------------ /// /// Displays either as a fixed-point or scientific notation based /// on the size of the number. /// // ------------------------------------------------------------------ General, // ------------------------------------------------------------------ /// /// Similar to fixed point but uses a separator character (such as ,) /// for groups of digits. /// // ------------------------------------------------------------------ Number, // ------------------------------------------------------------------ /// /// Multiplies the number by 100 and displays with a percent symbol. /// // ------------------------------------------------------------------ Percentage, // ------------------------------------------------------------------ /// /// Formats a floating-point number so that it can be successfully /// converted back to its original value. /// // ------------------------------------------------------------------ RoundTrip, // ------------------------------------------------------------------ /// /// Displays an integral number using the base-16 number system. /// // ------------------------------------------------------------------ Hexadecimal } }