Show LineNumbers from the RichTextBox in WPF

前端 未结 5 1492
再見小時候
再見小時候 2020-12-28 23:00

I found an example, how to show the LineNumbers from a RichTextBox in Windows Forms. http://www.codeproject.com/Articles/38858/Line-Numbers-for-RichText-Control

5条回答
  •  遥遥无期
    2020-12-28 23:32

    Here's a nice CodeProject article that shows a detailed approach to implementing line numbers and a handful of other nice code editing features in a TextBox control. If you don't care about how it's built, just download the sample file and use the included dll that contains the compiled control.

提交回复
热议问题