Hello,
you should set Closed = true in template object. Example:
IEObjectPolyLine template = (IEObjectPolyLine)ieViewer1.Image.Annotations.GetTemplateObject(IEObjectType.Polyline);
template.Closed = true;
ieViewer1.EnableObjectInserting=IEViewer.ObjectInserting.PolyLine;