Question about Quickstart sample Adornments 6

SyntaxEditor for WPF Forum

Posted 13 years ago by Tino Schnerwitzki
Version: 11.1.0533
Avatar
Hi,

in the Quickstart samples for the SyntaxEditor is a sample called Adornments 6 - Code Reviewing. In the sample you can insert an adornment using a button.
The problem is (and this happens in our application as well) is that when you insert the adornment element at the end of line its not possible to keep on writing behind the adornmen t element. If you type at the end of the line the adorner keeps moving and stays at the end of the line.
I want to be able to keep writing behind the adorner while the adorner keeps in its original place.
How can this be solved?

[Modified at 09/08/2011 02:43 AM]

[Modified at 09/08/2011 02:43 AM]

Comments (1)

Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Tino,

In the current version of the sample, I don't see that happening but I believe we did change the options of how the range is tracked at one point for that sample. We now use this code in OnAddNoteButtonClick:
ITextVersionRange versionRange = editor.ActiveView.Selection.SnapshotRange.ToVersionRange(TextRangeTrackingModes.ExpandFirstEdge | TextRangeTrackingModes.DeleteWhenZeroLength);
Try that instead and see if it gets you what you want.


Actipro Software Support

The latest build of this product (v24.1.2) was released 1 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.