We are trying to create a VSTO Word 2013 Document Addin which overlays visual indicators on the document while the user is editing to make them aware of problems with the information they are typing. It seems this can be done by drawing shapes such as the sample below. In our case, we don't want these shapes saved with the document, we just want them available when editing the document with the addin installed. Can anyone explain how we can do this?
private void DrawIt()
{
object oRng = Globals.ThisDocument.Application.Selection.Range;
var doc = Globals.ThisDocument.InnerObject;
var shape = doc.Shapes.AddLine(100f, 100f, 100f, 200f, ref oRng);
if (shape == null) return;
shape.Visible = Microsoft.Office.Core.MsoTriState.msoTrue;
shape.Line.DashStyle = Microsoft.Office.Core.MsoLineDashStyle.msoLineDash;
shape.Line.Weight = 3;
}