Hello Daniel ,
I have implemented this ReadOnlySegments funcionality with code snipet ( MakeReadOnly() ) you provided in your post .
But i have noticed "small bug" .. Here is how to reproduce it :
1. type some text in more than one line , for example four lines of text .. then apply MakeReadOnly() .. and that code/text become ReadOnly , but No, here is the problem :
2. Go to the line before/above last line in our case this is third line , and set caret at the end of line
3. and try to type in some text ; result ; one (exectly one) caracter appears at the end of line (bug ?)
Nenad Markovic