コード例 #1
0
        private void change_Text_Click(object sender, RoutedEventArgs e)
        {
            var parsedText = HebrewParser.GetListOfLetterWithColorFromCharArry(textBox_Original_Text.Text.ToCharArray());

            foreach (var letterWithColor in parsedText)
            {
                textBox_Resalut_Text.Text = textBox_Resalut_Text.Text + letterWithColor.Letter
            }
        }
コード例 #2
0
        private static void Main(string[] args)
        {
            var a = "דָדֻדִדֶדִדדדדדדֶדד".ToCharArray();
            var letterWithColorList = HebrewParser.GetListOfLetterWithColorFromCharArry(a);

            foreach (var letterWithColor in letterWithColorList)
            {
                Console.ForegroundColor = letterWithColor.ConsoleColoring;
                Console.Write(letterWithColor.Letter);
            }
            Console.ReadLine();
        }