How can I draw multi-colored text using graphics class on panel?
问题 I want to draw the following text on panel: It is a multi-colored text. I found this article about drawing multicolored text. I replaced characters with words but it doesn't work. (I use FillPath/DrawPath to draw text) my code: private void Form1_Paint(object sender, PaintEventArgs e) { const string txt = "C# Helper! Draw some text with each letter in a random color."; // Make the font. using (Font the_font = new Font("Times New Roman", 40, FontStyle.Bold | FontStyle.Italic)) { // Make a