![Avatar](https://secure.gravatar.com/avatar/f6cf2ca2da367731f8d46a2f7b5f9786.jpg?s=64&d=identicon&r=g)
In Syntax Editor, I'm trying to get the current caretPosition and display the line and column number.
ICaret caretPosition=editor.Caret;
int line=caretPosition.Position.DisplayLine;
int column=caretPosition.DisplayCharacterColumn;
I have a problem, when the length of the line exceed 9600 characters.
Lets assume 12th line have 10,000 characters, after 9600 characters line wrapped and display as next line.
If I select 12th line and 9601 character, then caret position returns line = 12 and column = 1. But the expected column is 9601.
How to resolve this issue.
Note: But the Visual Studio allow to have more than 9600 characters in a single line.
Thanks in advance.
[Modified 9 years ago]