Hi,
I'm using the ReadOnlySpanIndicator to create a readonly region, which works fine.
However, if I place the caret on the line immediately prior to the readonly region and I then press the Delete key, the readonly region comes up by one line (which I'd expect) and then stops being readonly.
I've pretty much mirrored the code that you provide in the sample project but I don't seem to have this problem on the sample project.
Is there some other property that I should be setting to prevent this from happening?
Here's the code that I'm using.
I'm using the ReadOnlySpanIndicator to create a readonly region, which works fine.
However, if I place the caret on the line immediately prior to the readonly region and I then press the Delete key, the readonly region comes up by one line (which I'd expect) and then stops being readonly.
I've pretty much mirrored the code that you provide in the sample project but I don't seem to have this problem on the sample project.
Is there some other property that I should be setting to prevent this from happening?
Here's the code that I'm using.
Dim layer As New SpanIndicatorLayer(SpanIndicatorLayer.ReadOnlyKey, SpanIndicatorLayer.ReadOnlyDisplayPriority)
editor.Document.SpanIndicatorLayers.Add(layer)
'some code goes here to find a start and end offset
layer.Add(New ReadOnlySpanIndicator, New TextRange(startOffset, endOffset))