public void BetterFormattingTest()
        {
            var ft = new BetterFormattedText("this is a brave new world");

            ft.GetRange(10, 15).Capitalize = true;

            Console.WriteLine(ft);
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            var ft = new FormattedText("This is a brave new world");

            ft.Capitalize(10, 15);
            WriteLine(ft);

            var bft = new BetterFormattedText("This is a brave new world");

            bft.GetRange(10, 15).Capitalize = true;
            WriteLine(bft);
        }
Esempio n. 3
0
        static void Main(string[] args)
        {
            var ft = new FormattedText("This is a brave new world");

            ft.Capatalize(10, 15);
            Console.WriteLine(ft);

            var Bft = new BetterFormattedText("This is a brave new world");

            Bft.AddRange(0, 3).Capatalize = true;
            Bft.AddRange(10, 14).Bold     = true;
            Bft.AddRange(16, 18).Italic   = true;
            Console.WriteLine(Bft);
        }
Esempio n. 4
0
        static void Main(string[] args)
        {
            // TEXT FORMATTING
            var ft = new FormattedText("This is a brave new world");

            ft.Capitalize(10, 15);
            Console.WriteLine(ft);

            var bft = new BetterFormattedText("This is a brave new world");

            bft.GetRange(10, 15).Capitalize = true;
            Console.WriteLine(bft);

            Console.ReadLine();
        }