Posted 19 years ago
by Boyd
-
Sr. Software Developer,
Patterson Consulting, LLC

I'm using SpanIndicators to store a history of document navigation to support the back/forward capabilities like found in VS 2005. While testing, I decided to have the indicators draw a glyph so I could see where these history markers were located. That's when I noticed that the glyphs don't appear to be drawn when the caret is located at the beginning of a new line.
When at the beginning of the first line, they draw fine. It's only at the beginning of each subsequent line that they don't draw. Maybe this is because the token before the offset is an 'EndOfLine' token? Not sure, but thought I'd bring it to your attention.
On a similar note, it appears you can't add a ZeroLength SpanIndicator at the last offset of the document (i.e. the 'EndOfDocument' token). You get the 'ArgumentOutOfRange' exception indicating that the offset is beyond the scope of the document. Since this offset is valid for Selections and everything else, I would think it should be valid for ZeroLength SpanIndicators as well.
When at the beginning of the first line, they draw fine. It's only at the beginning of each subsequent line that they don't draw. Maybe this is because the token before the offset is an 'EndOfLine' token? Not sure, but thought I'd bring it to your attention.
On a similar note, it appears you can't add a ZeroLength SpanIndicator at the last offset of the document (i.e. the 'EndOfDocument' token). You get the 'ArgumentOutOfRange' exception indicating that the offset is beyond the scope of the document. Since this offset is valid for Selections and everything else, I would think it should be valid for ZeroLength SpanIndicators as well.