How do i color a specific part of text in a richTextBox?

后端 未结 3 526
南方客
南方客 2021-01-28 16:52
private void LoadKeys(Dictionary> dictionary, string FileName)
        {
           string line = System.String.Empty;
           using (         


        
3条回答
  •  孤街浪徒
    2021-01-28 17:05

    public void ColorText(RichTextBox box, Color color)
            {
                box.Select(start, 5);
                box.SelectionColor = color;
            } 
    

提交回复
热议问题