Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

WPF RichTextBox: i want mouse cursor line number in RichTextBox

$
0
0

Hi Everyone,

I want line number where mouse is clicked in the RichTextBox

Example:

I have RichTextBox which contains text as shown below:

----------------------------

Hello

Hai

How

-------------------------

if i click on "Hai" i want to written the line number is:2

How can written it?


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>