SyntaxEditor.Caret gives wrong value for out of bounds line/column

SyntaxEditor for WPF Forum

Posted 8 years ago by Xinen Lee
Version: 15.1.0624
Platform: .NET 4.5
Environment: Windows 7 (64-bit)
Avatar

For an editor containing only 5 lines of text, when I set SyntaxEditor.Caret to Line 10, the displayed caret is displayed as the last position in the editor  (last column in Line 5 - which is expected). However SyntaxEditor.Caret.Position.Line is still line 10.

 

I would expect SyntaxEditor.Caret.Position and CharacterColumn/DisplayCharacterColumn to reflect the displayed position and not the set position.

Comments (1)

Answer - Posted 8 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello, we will update this for the next version to snap the position back to the document end in this scenario.


Actipro Software Support

The latest build of this product (v24.1.1) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.